{"name":"namify","description":"Convert a npm package name into a safe-to-use variable name. Use as a mixin in Yeoman generators.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/namify","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/namify.git"},"bugs":{"url":"https://github.com/jonschlinkert/namify/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/namify/blob/master/LICENSE-MIT"}],"keywords":["name","slug","slugify","string","var","variable"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb":"~0.2.0","chai":"~1.9.1","mocha":"~1.18.2"},"dependencies":{"reserved":"^0.1.0"},"_id":"namify@0.1.2","_shasum":"f3c127da4d102d59645aea277218aeec04355d31","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f3c127da4d102d59645aea277218aeec04355d31","tarball":"http://registry-npm.ywwl.com/namify/download/namify-0.1.2.tgz","integrity":"sha512-ll1HFO/m6XCx2cMnf5HXi3rVmMIxhP2fzSXfissm9E9x61le1ytEXnHuWV+ZMLdCxxGlKvp1wacg/9Z3G15RWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZLGcAOc/xoeiLvK2FXDin5eN94iZ2lWQao+NmzxETTwIgRSjC5fNgnR5KbzHvNWenCkfucX6Re20tNntqFBpm19E="}],"size":3118,"noattachment":false,"key":"/namify/-/namify-0.1.2.tgz"},"directories":{},"readme":"# namify [![NPM version](https://badge.fury.io/js/namify.png)](http://badge.fury.io/js/namify)\n\n> Convert a npm package name into a safe-to-use variable name. Use as a mixin in Yeoman generators.\n\n## Install\nInstall with [npm](npmjs.org):\n\n```bash\nnpm i namify --save-dev\n```\n\n\nInstall with [bower](https://github.com/bower/bower)\n\n```bash\nnpm i namify --save-dev\n```\n\n## Usage\n\n```js\nvar namify = require('namify');\nconsole.log(namify('foo-bar-bar'));\n//=> fooBarBaz\n```\nIf the resulting variable name matches an [ECMAscript reserved word](https://github.com/jonschlinkert/reserved), an underscore will be prepended to the variable name.\n\n### Yeoman generators\n\nUse as a mixin in Yeoman generators:\n\n```js\n// in the contructor\nthis._.mixin(namify);\n\n// in templates you can now do something like:\nvar <%= _.namify(appName) %> = require('<%= appname %>');\n//=> var fooBarBaz = require('foo-bar-baz');\n```\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\nCopyright (c) 2014 Jon Schlinkert, contributors.  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 11, 2014._","publish_time":1399804804825,"_cnpm_publish_time":1399804804825,"dist-tags":{"latest":"0.1.3"}}