{"name":"dashify","description":"Convert a camelcase or space-separated string to a dash-separated string. ~12 sloc, fast, supports diacritics.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/dashify","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Jeffrey Priebe","url":"https://github.com/jeffreypriebe"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Ondrej Brinkel","url":"https://www.anzui.de"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/dashify.git"},"bugs":{"url":"https://github.com/jonschlinkert/dashify/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["dash","dashcase","dasherize","dashify","slug","slugify"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"description":"Other awesome string libs you might like:","list":["pascalcase","romanize","word-wrap","wordcount"]},"lint":{"reflinks":true}},"gitHead":"11a0bd76fcbc935054e743877679aabe0709f233","_id":"dashify@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"integrity":"sha512-3uyC9AzRYm/9u2nqD8BpIBKsvHg/OfW3FLKS97mJPil2KzFNHgKta3yL2NfzMDY+0ArSLbKfgNXhgq0FyjOhoA==","shasum":"faa9365fbe72a688bcb5d6f2b270d370c96d575e","tarball":"http://registry-npm.ywwl.com/dashify/download/dashify-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDnaLa6n50aXkA7zQDib4yhVpMUOYdR+NG+9mahC4GBqAiBI/Zdlsa/Ay+K3ibsnfHL2kEEZjf4vmeq8wGx0vTq4HQ=="}],"size":3072,"noattachment":false,"key":"/dashify/-/dashify-1.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dashify-1.0.0.tgz_1512342703598_0.1538097003940493"},"directories":{},"readme":"# dashify [![NPM version](https://img.shields.io/npm/v/dashify.svg?style=flat)](https://www.npmjs.com/package/dashify) [![NPM monthly downloads](https://img.shields.io/npm/dm/dashify.svg?style=flat)](https://npmjs.org/package/dashify) [![NPM total downloads](https://img.shields.io/npm/dt/dashify.svg?style=flat)](https://npmjs.org/package/dashify) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/dashify.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/dashify)\n\n> Convert a camelcase or space-separated string to a dash-separated string. ~12 sloc, fast, supports diacritics.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save dashify\n```\n\n## Why another dashify lib?\n\nMost slugify libs cover way too many corner cases and are bloated and slow as a result. I made this as a fast and light alternative (it even supports diacritics in ~12 sloc).\n\n## Usage\n\n```js\nvar dashify = require('dashify');\n\nconsole.log(dashify('fooBar'));\n//=> 'foo-bar'\n\nconsole.log(dashify('fooBarBaz'));\n//=> 'foo-bar-baz'\n\nconsole.log(dashify('foo bar'));\n//=> 'foo-bar'\n\nconsole.log(dashify('foo barBaz'));\n//=> 'foo-bar-baz'\n\nconsole.log(dashify('foo barBaz quux'));\n//=> 'foo-bar-baz-quux'\n\nconsole.log(dashify('São Tomé and Príncipe'));\n//=> 'são-tomé-and-príncipe'\n```\n\n## options.condense\n\n**Type:** `boolean`\n\n**Default**: `undefined`\n\nCondense multiple consecutive dashes to one.\n\n```js\nconsole.log(dashify('Foo----Bar'));\n//=> 'foo----bar'\n\nconsole.log(dashify('Foo----Bar', {condense: true}));\n//=> 'foo-bar'\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nOther awesome string libs you might like:\n\n* [pascalcase](https://www.npmjs.com/package/pascalcase): Convert a string to pascal-case. | [homepage](https://github.com/jonschlinkert/pascalcase \"Convert a string to pascal-case.\")\n* [romanize](https://www.npmjs.com/package/romanize): Convert numbers to roman numerals (useful for books, outlines, documentation, slide decks, etc) | [homepage](https://github.com/jonschlinkert/romanize \"Convert numbers to roman numerals (useful for books, outlines, documentation, slide decks, etc)\")\n* [word-wrap](https://www.npmjs.com/package/word-wrap): Wrap words to a specified length. | [homepage](https://github.com/jonschlinkert/word-wrap \"Wrap words to a specified length.\")\n* [wordcount](https://www.npmjs.com/package/wordcount): Count the words in a string. Support for english, CJK and Cyrillic. | [homepage](https://github.com/jonschlinkert/wordcount \"Count the words in a string. Support for english, CJK and Cyrillic.\")\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 23 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 1  | [der-On](https://github.com/der-On) |  \n| 1  | [jeffreypriebe](https://github.com/jeffreypriebe) |  \n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on November 19, 2018._","publish_time":1512342704561,"_cnpm_publish_time":1512342704561,"dist-tags":{"latest":"2.0.0"}}