{"name":"toidentifier","description":"Convert a string of words to a JavaScript identifier","version":"0.0.1","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"bugs":{"url":"https://github.com/koajs/toidentifier/issues","email":"niftylettuce@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"dependencies":{},"ava":{"failFast":true,"verbose":true},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-preset-env":"^1.6.1","codecov":"^2.3.0","cross-env":"^5.0.5","eslint":"^4.5.0","eslint-config-prettier":"^2.3.0","eslint-plugin-prettier":"^2.2.0","husky":"^0.14.3","lint-staged":"^4.0.4","nyc":"^11.1.0","prettier":"^1.6.1","remark-cli":"^4.0.0","remark-preset-github":"^0.0.6","xo":"^0.19.0"},"engines":{"node":">=0.6"},"homepage":"https://github.com/koajs/toidentifier","keywords":["to","identifier"],"license":"MIT","lint-staged":{"*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}":["prettier --write --single-quote --trailing-comma none","git add"],"*.md":["remark . -qfo","git add"]},"main":"lib/index.js","remarkConfig":{"plugins":["preset-github"]},"repository":{"type":"git","url":"git+https://github.com/koajs/toidentifier.git"},"files":["lib"],"scripts":{"coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","lint":"xo && remark . -qfo","precommit":"lint-staged && npm test","test":"npm run build && npm run lint && npm run test-coverage","test-coverage":"cross-env NODE_ENV=test nyc ava","build":"babel src --out-dir lib","watch":"babel src --watch --out-dir lib"},"xo":{"extends":"prettier","plugins":["prettier"],"parserOptions":{"sourceType":"script"},"rules":{"prettier/prettier":["error",{"singleQuote":true,"bracketSpacing":true,"trailingComma":"none"}],"max-len":["error",{"code":80,"ignoreUrls":true}],"capitalized-comments":"off","camelcase":"off","no-warning-comments":"off"},"space":true},"gitHead":"6bf014ae81988f80eed392f2d47cda032efdaccf","_id":"toidentifier@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.0","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-rbnQkrIivqT1LG6lv4zIbjXG43nmtQvugnEK6E5tA0OlDJcK6e0O6DkxYmaV/zcB4Sd7Hb2uB0892I7CMYJdww==","shasum":"32fe700072972c0689f67fdb0e1eb92b2d18d413","tarball":"http://registry-npm.ywwl.com/toidentifier/download/toidentifier-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/eOjM0uezUs+kx47nk72iDpnSF+Gl/8r43cZsi86SWgIgO+67KxFYScCzv4QX0+zfbABPjhHfeUNMonZqPRIId/U="}],"size":3388,"noattachment":false,"key":"/toidentifier/-/toidentifier-0.0.1.tgz"},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toidentifier-0.0.1.tgz_1513674524835_0.4889004931319505"},"directories":{},"readme":"# toidentifier\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Build Status][github-actions-ci-image]][github-actions-ci-url]\n[![Test Coverage][codecov-image]][codecov-url]\n\n> Convert a string of words to a JavaScript identifier\n\n## Install\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```bash\n$ npm install toidentifier\n```\n\n## Example\n\n```js\nvar toIdentifier = require('toidentifier')\n\nconsole.log(toIdentifier('Bad Request'))\n// => \"BadRequest\"\n```\n\n## API\n\nThis CommonJS module exports a single default function: `toIdentifier`.\n\n### toIdentifier(string)\n\nGiven a string as the argument, it will be transformed according to\nthe following rules and the new string will be returned:\n\n1. Split into words separated by space characters (`0x20`).\n2. Upper case the first character of each word.\n3. Join the words together with no separator.\n4. Remove all non-word (`[0-9a-z_]`) characters.\n\n## License\n\n[MIT](LICENSE)\n\n[codecov-image]: https://img.shields.io/codecov/c/github/component/toidentifier.svg\n[codecov-url]: https://codecov.io/gh/component/toidentifier\n[downloads-image]: https://img.shields.io/npm/dm/toidentifier.svg\n[downloads-url]: https://npmjs.org/package/toidentifier\n[github-actions-ci-image]: https://img.shields.io/github/workflow/status/component/toidentifier/ci/master?label=ci\n[github-actions-ci-url]: https://github.com/component/toidentifier?query=workflow%3Aci\n[npm-image]: https://img.shields.io/npm/v/toidentifier.svg\n[npm-url]: https://npmjs.org/package/toidentifier\n\n\n##\n\n[npm]: https://www.npmjs.com/\n\n[yarn]: https://yarnpkg.com/\n","publish_time":1513674524919,"_cnpm_publish_time":1513674524919,"dist-tags":{"latest":"1.0.1"}}