{"name":"generic-names","version":"1.0.3","description":"Helper for building generic names, similar to webpack","main":"index.js","types":"index.d.ts","scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git+https://github.com/css-modules/generic-names.git"},"keywords":["css-modules","postcss-modules-scope","webpack"],"author":{"name":"Alexey Litvinov"},"license":"MIT","bugs":{"url":"https://github.com/css-modules/generic-names/issues"},"homepage":"https://github.com/css-modules/generic-names#readme","devDependencies":{"tape":"^4.6.2"},"dependencies":{"loader-utils":"^0.2.16"},"gitHead":"83931f95880421ad2bce2059283e60819063d314","_id":"generic-names@1.0.3","_shasum":"2d786a121aee508876796939e8e3bff836c20917","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.2.1","_npmUser":{"name":"sullenor","email":"iamhoneyboy@gmail.com"},"dist":{"shasum":"2d786a121aee508876796939e8e3bff836c20917","tarball":"http://registry-npm.ywwl.com/generic-names/download/generic-names-1.0.3.tgz","integrity":"sha512-b6OHfQuKasIKM9b6YPkX+KUj/TLBTx3B/1aT1T5F12FEuEqyFMdr59OMS53aoaSw8eVtapdqieX6lbg5opaOhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZBg2XVeLaKi6Aj/iVfSHF6YEHzJT7ZupneoCeajlhvAIhAP/Pypo0hint+iLJcOT1vfFVFudEmFbcAgzLPIKTNZnW"}],"size":2715,"noattachment":false,"key":"/generic-names/-/generic-names-1.0.3.tgz"},"maintainers":[{"name":"sullenor","email":"iamhoneyboy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generic-names-1.0.3.tgz_1509463424715_0.3199365723412484"},"directories":{},"readme":"generic-names\n=============\n\nHelper for building generic names, similar to webpack. Designed to be used with [postcss&#x2011;modules&#x2011;scope](https://github.com/css-modules/postcss-modules-scope).\n\nUses [interpolateName](https://github.com/webpack/loader-utils#interpolatename) from the webpack/loader-utils.\n\n## API\n\n```javascript\nvar genericNames = require('generic-names');\nvar generate = genericNames('[name]__[local]___[hash:base64:5]', {\n  context: process.cwd()\n});\n\ngenerate('foo', '/case/source.css'); // 'source__foo___3mRq8'\n```\n","publish_time":1509463425638,"_cnpm_publish_time":1509463425638,"dist-tags":{"beta":"1.0.0-beta","latest":"4.0.0"}}