1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/tests/registry/npm/unique-slug/registry.json
Nathan Whitaker ce7dc2be92
feat(node): Support executing npm package lifecycle scripts (preinstall/install/postinstall) (#24487)
Adds support for running npm package lifecycle scripts, opted into via a
new `--allow-scripts` flag.

With this PR, when running `deno cache` (or `DENO_FUTURE=1 deno
install`) you can specify the `--allow-scripts=pkg1,pkg2` flag to run
lifecycle scripts attached to the given packages.

Note at the moment this only works when `nodeModulesDir` is true (using
the local resolver).

When a package with un-run lifecycle scripts is encountered, we emit a
warning suggesting things may not work and to try running lifecycle
scripts. Additionally, if a package script implicitly requires
`node-gyp` and it's not found on the system, we emit a warning.

Extra things in this PR:
- Extracted out bits of `task.rs` into a separate module for reuse
- Added a couple fields to `process.config` in order to support
`node-gyp` (it relies on a few variables being there)
- Drive by fix to downloading new npm packages to test registry

---

TODO:
- [x] validation for allow-scripts args (make sure it looks like an npm
package)
- [x] make allow-scripts matching smarter
- [ ] figure out what issues this closes

---
Review notes:
- This adds a bunch of deps to our test registry due to using
`node-gyp`, so it's pretty noisy
2024-07-10 03:06:08 +00:00

1 line
No EOL
15 KiB
JSON

{"_id":"unique-slug","_rev":"41-679334e4c038b2828c2d73425c357ff9","name":"unique-slug","description":"Generate a unique character string suitible for use in files and URLs.","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"unique-slug","version":"1.0.0","keywords":[],"author":{"url":"http://re-becca.org","name":"Rebecca Turner","email":"me@re-becca.org"},"license":"ISC","_id":"unique-slug@1.0.0","maintainers":[{"name":"iarna","email":"me@re-becca.org"}],"homepage":"https://github.com/iarna/unique-slug","bugs":{"url":"https://github.com/iarna/unique-slug/issues"},"dist":{"shasum":"4459d12416f576cc091a3deb19939ec99c735626","tarball":"http://localhost:4260/unique-slug/unique-slug-1.0.0.tgz","integrity":"sha512-41ubizvGU9vKcq3eJoRshim96uZQMhOTnjce6SDDerAtjnxYQ63A5sBL7u8b6Z2djXbF1k+cP6eE/HQuXGr6Hg==","signatures":[{"sig":"MEUCIQD8t2LuOAz9YDjv8J95bkbzK9nYzsFEu+rPPcrcXlVCMAIgdHLXclm/wWlrAGQre4qieH1Yh9faO/gGXGmQQO6spwQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"4459d12416f576cc091a3deb19939ec99c735626","gitHead":"024b3bd3c0184550702c93f088822e3f38da5c17","scripts":{"test":"standard && tap test"},"_npmUser":{"name":"iarna","email":"me@re-becca.org"},"repository":{"url":"git://github.com/iarna/unique-slug.git","type":"git"},"_npmVersion":"2.7.6","description":"Generate a unique character string suitible for use in files and URLs.","directories":{},"_nodeVersion":"1.6.2","devDependencies":{"tap":"^1.0.0","standard":"^3.7.3"}},"2.0.0":{"name":"unique-slug","version":"2.0.0","keywords":[],"author":{"url":"http://re-becca.org","name":"Rebecca Turner","email":"me@re-becca.org"},"license":"ISC","_id":"unique-slug@2.0.0","maintainers":[{"name":"iarna","email":"me@re-becca.org"},{"name":"othiym23","email":"ogd@aoaioxxysz.net"}],"homepage":"https://github.com/iarna/unique-slug#readme","bugs":{"url":"https://github.com/iarna/unique-slug/issues"},"dist":{"shasum":"db6676e7c7cc0629878ff196097c78855ae9f4ab","tarball":"http://localhost:4260/unique-slug/unique-slug-2.0.0.tgz","integrity":"sha512-vjbzP5tKJ/zJl4hv0YGa8AzHBiwgenSFw9iTjE0xhYZU1bf7vKb9z+C7Hl01vfi6/dEmm7JpeVOxpNQybe0sbg==","signatures":[{"sig":"MEYCIQDvx2751L/JTxWImoeYMOZATHO+IVWTh5BRdq4BJ/noJAIhAMF9gvMH5D+yjFLYirDBr6J8Cpi91xQICqk4SgljB7Cq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"db6676e7c7cc0629878ff196097c78855ae9f4ab","gitHead":"b1d9d082ee5bd381961a2011a9aa3d9988e83ca7","scripts":{"test":"standard && tap --coverage test"},"_npmUser":{"name":"othiym23","email":"ogd@aoaioxxysz.net"},"repository":{"url":"git://github.com/iarna/unique-slug.git","type":"git"},"_npmVersion":"3.5.1","description":"Generate a unique character string suitible for use in files and URLs.","directories":{},"_nodeVersion":"5.1.0","dependencies":{"imurmurhash":"^0.1.4"},"devDependencies":{"tap":"^2.3.1","standard":"^5.4.1"}},"2.0.1":{"name":"unique-slug","version":"2.0.1","keywords":[],"author":{"url":"http://re-becca.org","name":"Rebecca Turner","email":"me@re-becca.org"},"license":"ISC","_id":"unique-slug@2.0.1","maintainers":[{"name":"iarna","email":"me@re-becca.org"},{"name":"othiym23","email":"ogd@aoaioxxysz.net"}],"homepage":"https://github.com/iarna/unique-slug#readme","bugs":{"url":"https://github.com/iarna/unique-slug/issues"},"dist":{"shasum":"5e9edc6d1ce8fb264db18a507ef9bd8544451ca6","tarball":"http://localhost:4260/unique-slug/unique-slug-2.0.1.tgz","fileCount":6,"integrity":"sha512-n9cU6+gITaVu7VGj1Z8feKMmfAjEAQGhwD9fE3zvpRRa0wEIx8ODYkVGfSc94M2OX00tUFV8wH3zYbm1I8mxFg==","signatures":[{"sig":"MEYCIQDiYmGaX0rhc1HJG6fkY8GD6Oz2U+DOZNCLrCP2BcNfhwIhAK8rLclcYPRdzNqWTRXMcbKzSeqCYY5bLcraIy6SsoLJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbo85TCRA9TVsSAnZWagAAqFIP/2I5qpBTE3kR9xJGnE9t\nXKUvEd+2iJ7UsuQMG9CJwdWIwUa6tGGGpkKEXZBAjnFgfqK1I/iGG5t3oIuP\nwVECLNnPGCxkHhDp9XZJL3RPXWBX8X+3APE056uX8ad0CA0zOoJBvRip4/3Y\nXbZHHkd37hdi0o29Uunwt4g7Qz5TASFTVwn8jwMgPgMLPHZrMt4ZZgpOW+2U\npJOEm2pdGCjT3ANoauMBMdawMhGxIQimI2M27RsBIp16JqjrHSyNfdMJjxLw\nvGJ+QnGJL1WCI/BAB1KC8OK8PHKvIUixM1zNdB9w15wRHRwelajhvOuhCdKe\nWRPJ1I9bsp7ZMSA35bNb3y/UH6Dh1GccmtrRdD1B5iRtlA0LRSy21tauDCa5\nMVQNbS1HQcRGptq/uTODxQc69BAsR+r/N9MNe134c6ppcYlP5xI/qS+yzD9t\nJofFoOYC8FbZOvxXL8p3N1i2AcYI10XkOnZNGCn4TWV3NBVpJA1BmkDIG4zE\nkV94TaTRlh3aDQFaQr7r5osHTSKjGf+noUFs+DKNgeAWhS1ZEj7DtyT6UE6m\nLa7o7RRIhqzo9o17yZOeb61G0qFB17rBoE0WETKzC2SEtnCQtCU/H08xpn2E\nfo173Qa9pYNe9jK3cx/+Y9fAMbnMtMD+9U8wmXEsWqItNgczS2J+cVWKYAau\nfsr0\r\n=3e5B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"b5c58f7086b55e0cb3311de5cfcbefdc7d3fb295","scripts":{"test":"standard && tap --coverage test"},"_npmUser":{"name":"iarna","email":"me@re-becca.org"},"repository":{"url":"git://github.com/iarna/unique-slug.git","type":"git"},"_npmVersion":"6.4.1","description":"Generate a unique character string suitible for use in files and URLs.","directories":{},"_nodeVersion":"10.10.0","dependencies":{"imurmurhash":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^2.3.1","standard":"^5.4.1"},"_npmOperationalInternal":{"tmp":"tmp/unique-slug_2.0.1_1537461842981_0.0688486787472038","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"unique-slug","version":"2.0.2","keywords":[],"author":{"url":"http://re-becca.org","name":"Rebecca Turner","email":"me@re-becca.org"},"license":"ISC","_id":"unique-slug@2.0.2","maintainers":[{"name":"iarna","email":"me@re-becca.org"},{"name":"othiym23","email":"ogd@aoaioxxysz.net"},{"name":"zkat","email":"npm@zkat.tech"}],"homepage":"https://github.com/iarna/unique-slug#readme","bugs":{"url":"https://github.com/iarna/unique-slug/issues"},"dist":{"shasum":"baabce91083fc64e945b0f3ad613e264f7cd4e6c","tarball":"http://localhost:4260/unique-slug/unique-slug-2.0.2.tgz","fileCount":6,"integrity":"sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==","signatures":[{"sig":"MEUCIGD+OiUtx1nYOZrgHe+yzFfWLYJy9qMjj0i7sko5pc8QAiEAwxZ9MWU+lqYp0DDoKStDbXl5j2YO82s8dExNdF+GX+w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/+93CRA9TVsSAnZWagAASukP/0eBevExHSP+c2nl4MQS\nH3Yrnzt72mB75TWwTvyqZkEx7OH+usPcfSfFVAfZmALrYdHCb8GTIYOYFtXI\n1W58L2hrf+bBF/9PUstsF/nOwFiybflsH2GM0tRDJMVT798t1rnBueNXtn5p\nG2ARm20PAmD5OaRhq5yIwdO1/xbmM2F/5E0AeP8P2VdvBAvl+p0euZ4JCIUB\n4B0eybM+/bvWAlnVAHfrCH6gtfN6tKi2nmlhpqS+MPS285OXsttXzCB54I6F\np2JFvQtLrW1/kWTS3wojBazId/CXER/Qdlo7slkTLj6vjJCD5jqRaf5GmvOU\nXdJJHjt1jdXmpFfikhkeRDUgE1S+ANPMvwV3UDy8/YEYhCxCx4Nr2UkrPgiN\nBNE9tUvng6yxWCcXal8ES17FdA6xbSjOLqPlXkzZ71af8uIZ4JK6V1ybyerg\n0oAG7ucd1a6roQfZ+gu/TES85JxVycQpQWrsZReP3+wiFoai9tkdAdxyp+pB\n+8Ahm0WyVWifR/UvDvQ+NN1bwr1eQSNV51/y+Kj70fD5Cn35PvVDaowA3QwF\n251tETG2uebnbXzbuInYPS1GBOTZSqigZsVxCQc9SCelt5bf3oRg81SHfAZM\nWuFmOjzkLQ01Abw9FECMFCZ3lML2YI2Qk7Kw899PNH8Tc6X1hLL4+Ri9O6cl\nyC1E\r\n=XASP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"36b094bac6905e0bd199971ef3c646dd982d5c30","scripts":{"test":"standard && tap --coverage test"},"_npmUser":{"name":"zkat","email":"npm@zkat.tech"},"repository":{"url":"git://github.com/iarna/unique-slug.git","type":"git"},"_npmVersion":"6.9.1-next.0","description":"Generate a unique character string suitible for use in files and URLs.","directories":{},"_nodeVersion":"10.15.3","dependencies":{"imurmurhash":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.7.0","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/unique-slug_2.0.2_1560276854352_0.9545905133271473","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"unique-slug","version":"3.0.0","keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"unique-slug@3.0.0","maintainers":[{"name":"fritzy","email":"fritzy@github.com"},{"name":"darcyclarke","email":"darcy@darcyclarke.me"},{"name":"nlf","email":"quitlahok@gmail.com"},{"name":"gar","email":"gar+npm@danger.computer"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"homepage":"https://github.com/npm/unique-slug#readme","bugs":{"url":"https://github.com/npm/unique-slug/issues"},"dist":{"shasum":"6d347cf57c8a7a7a6044aabd0e2d74e4d76dc7c9","tarball":"http://localhost:4260/unique-slug/unique-slug-3.0.0.tgz","fileCount":4,"integrity":"sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==","signatures":[{"sig":"MEYCIQDd5DD0DwyqZNzmhGsN6V4fcYYlyYRwL6XZdVNBNKw/mAIhANiRJMl0W27cM8wjHDVWEoR8rRp1BGICdDxmyNy9OAp5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBAEwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIzg//XuMc9hpyHiAhSYrX9kPRXaBIV73valdOXZbPt4FYEFiJnpwq\r\nnPFIYqtqXibYpfL46UZSjOHPUN9M+4o5whqYwGxvGYxkRrtd4jBhhBJz39sr\r\nLzjgEmu31mNmL3KGePnpPzxMtEbAeuAWRJXehwt3liFSsW1PKQ50FsMZlPrF\r\nkW8SP6q3CTN2ES/23hzdbluz5pFkbeko8bIwPcQylTP5p0sTmV2XWzAIuAYY\r\nWTOP6s7iYIY2i9lDiJVGJhUHdfBXi3HYXzCawfRu3nbY9tCuHdZpu9yXaOra\r\nXw8fiRaFVhXkPaHiQ+gB3UoSSsdSzzDZZocBOu/8tXEmYP/O4TkeJ/ltwUgK\r\nRAGk9VMG+jtTQ/uSYfG0abVTYr0sz9PPIjfJxaiAPFgmFpsxh3wYZS5xdCj/\r\nh59PSYvGWRPI/c2xTDwiEtvDJh9XecL+pod1sBdeodHVrULWDk1v+qCjf358\r\n0UPDHExtfuPzkYeXIjfQ8mWbn4CuyHyOtd5PqgiODTEkFzDxdI3jwftJfZLc\r\nZFJy05x2iseiP2R80iGFGJbn4POHS0Rva+H2hkMVlwZy8GqvaP8vejGs4nlv\r\nbxc0YUEWj89kmxnQpOYXq1kWrGd4+GxavvrLsRQDxdXNUUiosHU6yZj/IWnK\r\n0MEhcBN1Zw8AgPgZp2t9NbvgJohtf20NyaM=\r\n=hPNE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","engines":{"node":"^12.13.0 || ^14.15.0 || >=16.0.0"},"gitHead":"845863cdc5b842e67815bc59a687275020581760","scripts":{"lint":"eslint \"**/*.js\"","snap":"tap","test":"tap","lintfix":"npm run lint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"repository":{"url":"git+https://github.com/npm/unique-slug.git","type":"git"},"_npmVersion":"8.18.0","description":"Generate a unique character string suitible for use in files and URLs.","directories":{},"templateOSS":{"version":"3.5.0","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"18.7.0","dependencies":{"imurmurhash":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0","@npmcli/template-oss":"3.5.0","@npmcli/eslint-config":"^3.1.0"},"_npmOperationalInternal":{"tmp":"tmp/unique-slug_3.0.0_1661206832426_0.6992411852992655","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"unique-slug","version":"4.0.0","keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"unique-slug@4.0.0","maintainers":[{"name":"fritzy","email":"fritzy@github.com"},{"name":"darcyclarke","email":"darcy@darcyclarke.me"},{"name":"nlf","email":"quitlahok@gmail.com"},{"name":"gar","email":"gar+npm@danger.computer"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"homepage":"https://github.com/npm/unique-slug#readme","bugs":{"url":"https://github.com/npm/unique-slug/issues"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"dist":{"shasum":"6bae6bb16be91351badd24cdce741f892a6532e3","tarball":"http://localhost:4260/unique-slug/unique-slug-4.0.0.tgz","fileCount":4,"integrity":"sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==","signatures":[{"sig":"MEQCIG6BD0MotYNS6i3pkwGEeSMZaU2X16DakfGa/ZnAUEdCAiB/h46e6TvTZ+WjZI0Wt6g3e98NKalhZBI3dRf4P3bKdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2579,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSPIsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFFhAAk1x5mPWEmFyOF6IQ0Di6272m1JkcIrLGXGwP2k0Wg0KAfDIG\r\nidIJs6fOSITYh0og+JCngXfb/8P9FMividcK9d7JoLmjx+KJ6nmtpVfk2fLL\r\nWxvtayWUUqpGYwYM83QXVnOhpfMBF/xjpXjXbsZ3sBuxVMUDDuSxsW1DGUot\r\nLVfqZzWZAs4p5wWPOpPL0WEJztBZFezJ6Awi0AxsFr+hNuS9+QoSwQ1nSewg\r\nbbwnIALgCkd9zwCWJvPJfJhXAB6+7oGwkOMJ/bWaB7fkdvsYzycVmdN+C+Nq\r\ns5iTZbWY6t6+6gP79IKiKT6uBUHJ2KMnaJ+uN+DL8he6rIZnogPJxr2lMz6s\r\nrzZ9opOnadQBfqH+t6GmMOshI6+YaQbv5wSQCLPf4tEUcdgbccput/hd9rLu\r\nYDfLJgcZ8tswnO1mKsVdMAfpSDmr/K7yjvFQ8EpIjxOER9UwiGmZ2N3u95T9\r\nOM9Rgm5oxonYaDQ35cAlSdLKXcQdb9mKiBQJoBFarw5J0Rqq/oP5x29BA2Qy\r\n82i32537IiNnuGLM1rRF8jJAIZk6O4DA+bDKlPwLKFQYGN4I521OD498EX3q\r\n5/+Gtg07miHCmlMx58xvPhacogVh0XlsE2ncqwOQnVJGt+UWCXR1749MDIdK\r\n7hnJOHZ8G68VN+tcmgJOFJgY886ceXCpRIo=\r\n=IwzH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"gitHead":"a1e990fea3f416b231fd0ffebc9f55bfa7359fcc","scripts":{"lint":"eslint \"**/*.js\"","snap":"tap","test":"tap","lintfix":"npm run lint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"repository":{"url":"git+https://github.com/npm/unique-slug.git","type":"git"},"_npmVersion":"8.19.2","description":"Generate a unique character string suitible for use in files and URLs.","directories":{},"templateOSS":{"version":"4.5.1","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"18.10.0","dependencies":{"imurmurhash":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0","@npmcli/template-oss":"4.5.1","@npmcli/eslint-config":"^3.1.0"},"_npmOperationalInternal":{"tmp":"tmp/unique-slug_4.0.0_1665724972085_0.7163009425939613","host":"s3://npm-registry-packages"}}},"time":{"created":"2015-05-07T22:25:31.152Z","modified":"2024-05-30T15:10:10.787Z","1.0.0":"2015-05-07T22:25:31.152Z","2.0.0":"2015-12-03T22:44:34.276Z","2.0.1":"2018-09-20T16:44:03.228Z","2.0.2":"2019-06-11T18:14:14.530Z","3.0.0":"2022-08-22T22:20:32.575Z","4.0.0":"2022-10-14T05:22:52.279Z"},"maintainers":[{"email":"reggi@github.com","name":"reggi"},{"email":"npm-cli+bot@github.com","name":"npm-cli-ops"},{"email":"saquibkhan@github.com","name":"saquibkhan"},{"email":"fritzy@github.com","name":"fritzy"},{"email":"gar+npm@danger.computer","name":"gar"}],"author":{"name":"GitHub Inc."},"repository":{"url":"git+https://github.com/npm/unique-slug.git","type":"git"},"keywords":[],"license":"ISC","homepage":"https://github.com/npm/unique-slug#readme","bugs":{"url":"https://github.com/npm/unique-slug/issues"},"readme":"unique-slug\n===========\n\nGenerate a unique character string suitible for use in files and URLs.\n\n```\nvar uniqueSlug = require('unique-slug')\n\nvar randomSlug = uniqueSlug()\nvar fileSlug = uniqueSlug('/etc/passwd')\n```\n\n### uniqueSlug(*str*) → String (8 chars)\n\nIf *str* is passed in then the return value will be its murmur hash in\nhex.\n\nIf *str* is not passed in, it will be 4 randomly generated bytes\nconverted into 8 hexadecimal characters.\n","readmeFilename":"README.md","users":{"iarna":true,"flumpus-dev":true}}