{"_id":"@bleed-believer/mnt","_rev":"12-289cfcd5eaeed2ac2fd0147dbb6062f9","name":"@bleed-believer/mnt","dist-tags":{"latest":"0.0.9-alpha.0"},"versions":{"0.0.0":{"name":"@bleed-believer/mnt","version":"0.0.0","keywords":["meta","metadata","symbol"],"author":{"name":"sleep-written"},"license":"MIT","_id":"@bleed-believer/mnt@0.0.0","maintainers":[{"name":"sleep-written","email":"sleep.written0000@gmail.com"}],"homepage":"https://github.com/sleep-written/bleed-believer#readme","bugs":{"url":"https://github.com/sleep-written/bleed-believer/issues"},"dist":{"shasum":"d7a57d9dcb46175101513eda6ab5d0acd5977629","tarball":"https://registry.npmjs.org/@bleed-believer/mnt/-/mnt-0.0.0.tgz","fileCount":33,"integrity":"sha512-M27Bnomu0hmB18/nW/gW5sjt+hFQanu1lpkOkeWiNlRbdqLfWBnky5dF3UG3BkAj68BSSPFRyP8kpb/PUr9Tsw==","signatures":[{"sig":"MEYCIQDRN7Jw004RSBz3R5lgSM9LyYKbHCXrUzPzgaazWteHtQIhAPkMGO/QigREBomMWD3fKLmszPwQSo1TfNvu4ZgJxEqV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18746},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js"}},"gitHead":"8ec164d2dbfbd43585cef2f23677612f1a5576ea","scripts":{"test":"ava","build":"node --run clean && node --run build:swc && node --run build:tsc","check":"tsc --noEmit","clean":"rm -rf ./dist","build:swc":"node ../cli/dist/cli.js build --config ./tsconfig.build.json","build:tsc":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.json"},"_npmUser":{"name":"sleep-written","email":"sleep.written0000@gmail.com"},"repository":{"url":"git+https://github.com/sleep-written/bleed-believer.git","type":"git"},"_npmVersion":"lerna/9.0.1/node@v24.11.1+x64 (linux)","description":"Manage partitions in linux.","directories":{},"_nodeVersion":"24.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mnt_0.0.0_1764008363578_0.3423193656496093","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.0":{"name":"@bleed-believer/mnt","version":"0.0.0-alpha.0","keywords":["meta","metadata","symbol"],"author":{"name":"sleep-written"},"license":"MIT","_id":"@bleed-believer/mnt@0.0.0-alpha.0","maintainers":[{"name":"sleep-written","email":"sleep.written0000@gmail.com"}],"homepage":"https://github.com/sleep-written/bleed-believer#readme","bugs":{"url":"https://github.com/sleep-written/bleed-believer/issues"},"dist":{"shasum":"32a9fd1cd2d5152ca5862d7b371910b5d9ba1bfa","tarball":"https://registry.npmjs.org/@bleed-believer/mnt/-/mnt-0.0.0-alpha.0.tgz","fileCount":33,"integrity":"sha512-4d1diLHkIu9v1jtHLchCEuvD53gaIQfInSe7b9p9N9zO6B4XE5SLHCrSCxCN4/mTdIdReXw9LwTEV0LnJ3noBQ==","signatures":[{"sig":"MEQCIG02ukQ56co37Cw3CGUlPuGdGQGSlxmvQjqo2d1p97ryAiBO5TnodXJFsI9/UBg2mO2byVEr+uLFdaiSOYZEfS2odw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18754},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js"}},"gitHead":"4ad1c7f80db0007b79e4816f5c02b9989ca84b03","scripts":{"test":"ava","build":"node --run clean && node --run build:swc && node --run build:tsc","check":"tsc --noEmit","clean":"rm -rf ./dist","build:swc":"node ../cli/dist/cli.js build --config ./tsconfig.build.json","build:tsc":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.json"},"_npmUser":{"name":"sleep-written","email":"sleep.written0000@gmail.com"},"repository":{"url":"git+https://github.com/sleep-written/bleed-believer.git","type":"git"},"_npmVersion":"lerna/9.0.1/node@v24.11.1+x64 (linux)","description":"Manage partitions in linux.","directories":{},"_nodeVersion":"24.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mnt_0.0.0-alpha.0_1764010971943_0.7143347613952711","host":"s3://npm-registry-packages-npm-production"}},"0.0.9-alpha.0":{"name":"@bleed-believer/mnt","version":"0.0.9-alpha.0","description":"Manage partitions in linux.","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js"}},"scripts":{"test":"ava","build:tsc":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.json","build:swc":"bleed build --config ./tsconfig.build.json","build":"node --run clean && node --run build:swc && node --run build:tsc","clean":"rm -rf ./dist","check":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/sleep-written/bleed-believer.git"},"keywords":["meta","metadata","symbol"],"publishConfig":{"access":"public"},"author":{"name":"sleep-written"},"license":"MIT","bugs":{"url":"https://github.com/sleep-written/bleed-believer/issues"},"homepage":"https://github.com/sleep-written/bleed-believer#readme","gitHead":"b6c151980a7d3b8beb3aff811073f2ee95935456","_id":"@bleed-believer/mnt@0.0.9-alpha.0","_nodeVersion":"24.13.0","_npmVersion":"lerna/9.0.7/node@v24.13.0+x64 (linux)","dist":{"integrity":"sha512-+VHOD99xC/ia7AqzJqj+eKmSnk4g1hMvL4o8pMoeXXhFipeuOUqA8A7y5DRlb3nK6GU1IuTHNj0N7G1bsJhncg==","shasum":"0db976f0052af01fa91287801a59c19c5b3316f7","tarball":"https://registry.npmjs.org/@bleed-believer/mnt/-/mnt-0.0.9-alpha.0.tgz","fileCount":33,"unpackedSize":18077,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDtwrUgkky2QVjWqt2DEoDoEgFixkGnfpMN5VaANR9yWAIgff0cEd3ge8ThoqBXQk1pFV2K8U3LRVSQOXBb3ABfGwo="}]},"_npmUser":{"name":"sleep-written","email":"sleep.written0000@gmail.com"},"directories":{},"maintainers":[{"name":"sleep-written","email":"sleep.written0000@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mnt_0.0.9-alpha.0_1775848286059_0.43043356080976247"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-24T19:02:51.868Z","modified":"2026-04-10T19:11:26.321Z","0.0.1":"2022-10-03T19:10:49.086Z","0.0.2":"2022-10-03T22:43:11.993Z","0.0.3":"2022-10-04T13:20:15.849Z","0.1.0":"2023-03-29T12:24:56.459Z","0.1.1":"2023-12-11T20:42:21.269Z","0.1.2":"2024-07-18T15:52:54.096Z","0.1.3":"2024-10-02T18:16:23.288Z","0.1.4":"2025-04-15T19:27:44.907Z","0.0.0":"2025-11-24T18:19:23.796Z","0.0.0-alpha.0":"2025-11-24T19:02:52.115Z","0.0.9-alpha.0":"2026-04-10T19:11:26.216Z"},"bugs":{"url":"https://github.com/sleep-written/bleed-believer/issues"},"author":{"name":"sleep-written"},"license":"MIT","homepage":"https://github.com/sleep-written/bleed-believer#readme","keywords":["meta","metadata","symbol"],"repository":{"type":"git","url":"git+https://github.com/sleep-written/bleed-believer.git"},"description":"Manage partitions in linux.","maintainers":[{"name":"sleep-written","email":"sleep.written0000@gmail.com"}],"readme":"# @bleed-believer/mnt\nManage partitions in linux.\n\n## Disclaimer\nSince __ESM__ hs been heavely adopted by the whole `node.js` community (including transpilers, unit testing, and many other libraries), the __CJS__ support has been removed. If you still needs the __CJS__ compatibility, please use [this version](https://www.npmjs.com/package/@bleed-believer/mnt/v/0.0.3) or earlier.\n\n## Installation\nSimply use:\n```bash\nnpm i --save @bleed-believer/mnt\n```\n\n## Usage\n- Gets all mounted resources:\n    ```ts\n    import { Resource } from '@bleed-believer/mnt';\n\n    const resources = await Resource.get();\n    console.log(resources);\n    ```\n\n- Gets an specific resource:\n    ```ts\n    import { Resource } from '@bleed-believer/mnt';\n\n    const resource = await Resource.find(x => x.target === '/mnt/z');\n    console.log(resource);\n    ```\n\n- Checks if the resource is mounted:\n    ```ts\n    import { Resource } from '@bleed-believer/mnt';\n\n    const resp = await Resource.some(x => x.target === '/mnt/z');\n    console.log('exists???', resp);\n    ```\n\n- Filtering some devices:\n    ```ts\n    import { Resource } from '@bleed-believer/mnt';\n\n    const resources = await Resource.filter(x => x.fstype === 'ext4');\n    console.log(resources);\n    ```\n\n- Mounting a resource listed in `/etc/fstab`:\n    ```ts\n    import { Resource } from '@bleed-believer/mnt';\n\n    const obj = await Resource.mount('/mnt/z');\n    console.log(obj);\n    ```\n\n- Mounting a new resource:\n    ```ts\n    import { Resource } from '@bleed-believer/mnt';\n\n    const obj = await Resource.mount({\n        fstype: 'ntfs',\n        source: '/dev/sdb2',\n        target: '/mnt/z'\n    });\n    console.log(obj);\n    ```\n\n- Unmounting a resource:\n    ```ts\n    import { Resource } from '@bleed-believer/mnt';\n    \n    // Using only the target folder (listed in /etc/fstab)...\n    await Resource.umount('/mnt/z');\n\n    // ...or usinig an instance\n    const obj = await Resource.find(x => x.target === '/mnt/z');\n    await obj.umount();\n    ```","readmeFilename":"README.md"}