{"_id":"fb-dotslash","_rev":"4404805","name":"fb-dotslash","description":"Command-line tool to facilitate fetching an executable, caching it, and then running it.","dist-tags":{"latest":"0.5.8"},"maintainers":[{"name":"fb","email":""},{"name":"motizilberman","email":""}],"time":{"modified":"2026-04-10T19:20:41.000Z","created":"2025-06-30T13:59:12.575Z","0.0.0-test-release-motiz88-0-5-7-2-1755626867503":"2025-08-19T18:07:51.161Z","0.5.8":"2025-08-20T18:19:01.356Z","0.0.0-reserved":"2025-06-30T13:59:12.575Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/facebook/dotslash.git"},"versions":{"0.0.0-test-release-motiz88-0-5-7-2-1755626867503":{"name":"fb-dotslash","version":"0.0.0-test-release-motiz88-0-5-7-2-1755626867503","bin":{"dotslash":"bin/dotslash"},"description":"Command-line tool to facilitate fetching an executable, caching it, and then running it.","repository":{"type":"git","url":"git+https://github.com/facebook/dotslash.git"},"homepage":"https://dotslash-cli.com/","bugs":{"url":"https://github.com/facebook/dotslash/issues"},"contributors":[{"name":"Michael Bolin","email":"bolinfest@gmail.com"},{"name":"Andres Suarez","email":"zertosh@gmail.com"},{"name":"Moti Zilberman","email":"motiz88@gmail.com"}],"main":"index.js","scripts":{"clean":"node scripts/clean-package","build":"npm run fix && node scripts/build-package","fix":"prettier --write .","lint":"prettier --check ."},"license":"(MIT OR Apache-2.0)","engines":{"node":">=20"},"devDependencies":{"prettier":"3.6.2"},"_id":"fb-dotslash@0.0.0-test-release-motiz88-0-5-7-2-1755626867503","gitHead":"8f3dd6bb6baaa240647e4d8bc182c7115f41e774","types":"./index.d.ts","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"shasum":"356c197b9704c2c8a91ba3dd1f200a0a6435f782","size":4195675,"noattachment":false,"key":"/fb-dotslash/-/fb-dotslash-0.0.0-test-release-motiz88-0-5-7-2-1755626867503.tgz","tarball":"http://registry.cnpm.dingdandao.com/fb-dotslash/download/fb-dotslash-0.0.0-test-release-motiz88-0-5-7-2-1755626867503.tgz"},"_npmUser":{"name":"fb","email":"opensource+npm@fb.com"},"directories":{},"maintainers":[{"name":"fb","email":""},{"name":"motizilberman","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fb-dotslash_0.0.0-test-release-motiz88-0-5-7-2-1755626867503_1755626870818_0.3962682466738183"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-19T18:07:51.161Z","publish_time":1755626871161,"_source_registry_name":"default","_cnpm_publish_time":1755626871161},"0.5.8":{"name":"fb-dotslash","version":"0.5.8","bin":{"dotslash":"bin/dotslash"},"description":"Command-line tool to facilitate fetching an executable, caching it, and then running it.","repository":{"type":"git","url":"git+https://github.com/facebook/dotslash.git"},"homepage":"https://dotslash-cli.com/","bugs":{"url":"https://github.com/facebook/dotslash/issues"},"contributors":[{"name":"Michael Bolin","email":"bolinfest@gmail.com"},{"name":"Andres Suarez","email":"zertosh@gmail.com"},{"name":"Moti Zilberman","email":"motiz88@gmail.com"}],"main":"index.js","scripts":{"clean":"node scripts/clean-package","build":"npm run fix && node scripts/build-package","fix":"prettier --write .","lint":"prettier --check ."},"license":"(MIT OR Apache-2.0)","engines":{"node":">=20"},"devDependencies":{"prettier":"3.6.2"},"_id":"fb-dotslash@0.5.8","gitHead":"8060e2dec764bceba5809cf6a15906644aad0078","types":"./index.d.ts","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"shasum":"c5ef3dacd75e1ddb2197c367052464ddde0115f5","size":4195625,"noattachment":false,"key":"/fb-dotslash/-/fb-dotslash-0.5.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/fb-dotslash/download/fb-dotslash-0.5.8.tgz"},"_npmUser":{"name":"fb","email":"opensource+npm@fb.com"},"directories":{},"maintainers":[{"name":"fb","email":""},{"name":"motizilberman","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fb-dotslash_0.5.8_1755713941011_0.22782923843605474"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-20T18:19:01.356Z","publish_time":1755713941356,"_source_registry_name":"default","_cnpm_publish_time":1755713941356},"0.0.0-reserved":{"name":"fb-dotslash","version":"0.0.0-reserved","description":"Command-line tool to facilitate fetching an executable, caching it, and then running it. [Package not published yet]","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"(MIT OR Apache-2.0)","_id":"fb-dotslash@0.0.0-reserved","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"shasum":"6172c0cbd67e397481fac81564c16d14b53cd47e","size":336,"noattachment":false,"key":"/fb-dotslash/-/fb-dotslash-0.0.0-reserved.tgz","tarball":"http://registry.cnpm.dingdandao.com/fb-dotslash/download/fb-dotslash-0.0.0-reserved.tgz"},"_npmUser":{"name":"motizilberman","email":"motiz88+npm@gmail.com","actor":{"name":"motizilberman","email":"motiz88+npm@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"fb","email":""},{"name":"motizilberman","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fb-dotslash_0.0.0-reserved_1751291952411_0.6697752000379975"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-30T13:59:12.575Z","publish_time":1751291952575,"_source_registry_name":"default","_cnpm_publish_time":1751291952575}},"readme":"# DotSlash: simplified executable deployment\n\n[DotSlash](https://dotslash-cli.com/docs/) (`dotslash`) is a command-line tool that lets you represent a set of\nplatform-specific, heavyweight executables with an equivalent small,\neasy-to-read text file. In turn, this makes it efficient to store executables in\nsource control without hurting repository size. This paves the way for checking\nbuild toolchains and other tools directly into the repo, reducing dependencies\non the host environment and thereby facilitating reproducible builds.\n\nThe `fb-dotslash` npm package allows you to use DotSlash in your Node.js projects without having to install DotSlash globally. This is particularly useful for package authors, who have traditionally needed to either include binaries for _all_ platforms or manage their own download and caching in a postinstall script.\n\n## Using DotSlash in an npm package\n\nFirst, you'll need to write a [DotSlash file](https://dotslash-cli.com/docs/dotslash-file/) that describes the binary you want to distribute.\n\nIf your npm package declares `fb-dotslash` as a dependency, any commands executed as part of `npm run` and `npm exec` will have `dotslash` available on the `PATH`. This means you can, for example, directly reference DotSlash files in your `package.json` scripts with no further setup:\n\n```json\n{\n  \"name\": \"my-package\",\n  \"scripts\": {\n    \"foo\": \"path/to/dotslash/file\"\n  },\n  \"dependencies\": {\n    \"fb-dotslash\": \"^0.5.8\"\n  }\n}\n```\n\nIf you need to use `dotslash` in some other context, you can use `require('fb-dotslash')` to get the path to the DotSlash executable appropriate for the current platform:\n\n```js\nconst dotslash = require('fb-dotslash');\nconst {spawnSync} = require('child_process');\nspawnSync(dotslash, ['path/to/dotslash/file'], {stdio: 'inherit']);\n```\n\n## License\n\nDotSlash is licensed under both the MIT license and Apache-2.0 license; the\nexact terms can be found in the [LICENSE-MIT](https://github.com/facebook/dotslash/blob/main/LICENSE-MIT) and\n[LICENSE-APACHE](https://github.com/facebook/dotslash/blob/main/LICENSE-APACHE) files, respectively.\n","_attachments":{},"homepage":"https://dotslash-cli.com/","bugs":{"url":"https://github.com/facebook/dotslash/issues"},"license":"(MIT OR Apache-2.0)"}