{"name":"voca","version":"1.3.0","description":"The ultimate JavaScript string library","homepage":"https://vocajs.com","author":{"name":"Dmitri Pavlutin","email":"dmitri@rainsoft.io","url":"https://rainsoft.io/about-me/"},"license":"MIT","keywords":["string","sprintf","trim","truncate","pad","slugify","latinise","escape","word","wrap","case","strip"],"repository":{"type":"git","url":"git+https://github.com/panzerdp/voca.git"},"bugs":{"url":"https://github.com/panzerdp/voca/issues","email":"dmitri@rainsoft.io"},"main":"index.js","jsnext:main":"index.es2015.js","scripts":{"eslint":"eslint . --ext .js","build":"npm run build-dist && npm run build-npm-package","build-dist":"rollup -c config/rollup_dist.js && rollup -c config/rollup_dist_min.js && rollup -c config/rollup_test.js","build-npm-package":"npm run prepare-npm-package && rollup -c config/rollup_dist_mod.js && node config/transform.js && rollup -c config/rollup_dist_es.js","prepare-npm-package":"rm -rf dist_mod && mkdir dist_mod && cp package.json README.md LICENSE.md ./dist_mod","test":"mocha test/index.js --reporter dot","test-npm-package":"mocha test/modules_common.js test/modules_es2015.js --reporter dot","test-sl":"grunt --gruntfile ./test_runner/gruntfile.js --base .","coverage":"istanbul cover _mocha -- test/index.js --reporter spec","report-coverage":"cat ./coverage/lcov.info | codecov","verify":"npm run eslint && npm run coverage","jsdoc":"jsdoc --configure .jsdoc.json","deploy":"rollup -c config/rollup_dist.js && cp dist/voca.js docs/scripts && scp -r docs/* rainishere:/home/rainishere/webapps/voca_docs","precommit":"npm run eslint && npm run test"},"devDependencies":{"babel-cli":"6.22.2","babel-core":"6.22.1","babel-eslint":"7.1.1","babel-plugin-add-module-exports":"0.2.1","babel-plugin-module-resolver":"2.5.0","babel-plugin-transform-es2015-block-scoping":"6.22.0","babel-plugin-transform-es2015-destructuring":"6.22.0","babel-plugin-transform-es2015-modules-commonjs":"6.22.0","babel-plugin-transform-es2015-parameters":"6.22.0","babel-plugin-transform-es2015-shorthand-properties":"6.22.0","babel-plugin-transform-es2015-spread":"6.22.0","babel-plugin-transform-object-assign":"6.22.0","babel-register":"6.22.0","babel-root-import":"4.1.8","chai":"3.5.0","codecov.io":"0.1.6","eslint":"3.15.0","glob":"7.1.1","grunt":"1.0.1","grunt-contrib-connect":"1.0.2","grunt-saucelabs":"9.0.0","husky":"0.13.1","istanbul":"1.1.0-alpha.1","jsdoc":"3.4.3","mkdirp":"0.5.1","mocha":"3.2.0","rollup":"0.41.4","rollup-plugin-babel":"2.7.1","rollup-plugin-uglify":"1.0.1","source-map-support":"0.4.11"},"dependencies":{},"_id":"voca@1.3.0","_shasum":"02751ac839bf0c92e2cfe88e49c393c94dd50ac3","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"panzerdp","email":"dmitri@rainsoft.io"},"dist":{"shasum":"02751ac839bf0c92e2cfe88e49c393c94dd50ac3","tarball":"http://registry-npm.ywwl.com/voca/download/voca-1.3.0.tgz","integrity":"sha512-Oj2rrS6fIBmgsE1+IdbzNcZV5WL/+IGC0DWXL5RGNb8G4eGWwppdFYoKfQ5nXzV7NHEwX0x5wHP7V2SjGBzl/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMddUFnmBq/Fe/UAMwooqdWEj6d2KE6rBDjvdZug/dBAIhAKn9bEkfFR/R55/zMvIe7NIto4s1oYCmg2qu1hkesNSM"}],"size":93350,"noattachment":false,"key":"/voca/-/voca-1.3.0.tgz"},"maintainers":[{"name":"panzerdp","email":"dpavlutin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/voca-1.3.0.tgz_1487011099899_0.5639269615057856"},"directories":{},"readme":"# [![Voca JavaScript library logo][logo]][voca]\n\n[![travis build](https://img.shields.io/travis/panzerdp/voca.svg)](https://travis-ci.org/panzerdp/voca)\n[![code coverage](https://img.shields.io/codecov/c/github/panzerdp/voca.svg)](https://codecov.io/github/panzerdp/voca)\n[![npm package](https://img.shields.io/npm/v/voca.svg)](https://www.npmjs.com/package/voca)\n\nVoca is a JavaScript library for manipulating strings. [https://vocajs.pages.dev][voca]\n\n```javascript\nv.camelCase('bird flight');              // => 'birdFlight'\nv.sprintf('%s costs $%.2f', 'Tea', 1.5); // => 'Tea costs $1.50'\nv.slugify('What a wonderful world');     // => 'what-a-wonderful-world'\n```\n\nThe Voca library offers helpful functions to make string manipulations comfortable: *change case, trim, pad, slugify,\nlatinise, sprintf'y, truncate, escape* and much more.  The *modular design* allows to load the entire library, or\nindividual functions to minimize the application builds. The library is *fully tested*, *well documented* and *long-term supported*.\n\n## Features\n\n*  Provides the complete set of functions to manipulate, chop, format, escape and query strings\n*  Includes detailed, easy to read and searchable [documentation][voca]\n*  [Supports](https://saucelabs.com/u/panzerdp) a wide range of environments: Node.js 0.10+, Chrome, Firefox, Safari 7+, Edge 13+, IE 9+\n*  100% code coverage\n*  No dependencies\n\n## Documentation\n\nSee the complete documentation at [https://vocajs.pages.dev][voca]\n\n## Usage\nVoca can be used in various environments.\n\n### Node.js, Rollup, Webpack, Browserify\n\n![Voca JavaScript library supports Node.js, Rollup, Webpack, Browserify][logo_commonjs]\n\nInstall the library with npm into your local modules directory:\n\n```bash\nnpm install voca\n```\n\n### CommonJS modules\n\nThen in your application require the entire library:\n\n```javascript\nconst v = require('voca');\nv.trim(' Hello World! ');            // => 'Hello World'\nv.sprintf('%d red %s', 3, 'apples'); // => '3 red apples'\n```\n\nOr require individual functions:\n\n```javascript\nconst words = require('voca/words');\nconst slugify = require('voca/slugify');\nwords('welcome to Earth'); // => ['welcome', 'to', 'Earth']\nslugify('caffé latté');    // => 'caffe-latte'\n```\n\n### ES2015 modules\n\nVoca is compatible with ES2015 modules to import the entire library:\n\n```javascript\nimport voca from 'voca';\nvoca.kebabCase('goodbye blue sky'); // => 'goodbye-blue-sky'\n```\n\nOr import individual functions:\n\n```javascript\nimport last from 'voca/last';\nlast('sun rises', 5); // => 'rises'\n```\n\n### Browser\n\n![Voca JavaScript library supports Chrome, Firefox, Safari, Edge, Internet Explorer][logo_browsers]\n\nLoad the UMD builds directly into browser's web page:\n\n* [`dist/voca.min.js`][voca_min_js] minified production-ready, with [source map][source_map] \n* [`dist/voca.js`][voca_js] uncompressed with comments\n\n```html\n<script src=\"voca.js\" type=\"text/javascript\"></script>\n```\n\nThen a global variable `v` is exposed for the entire library:\n\n```html\n<script type=\"text/javascript\">\n  v.last('wonderful world', 5); // => 'world'\n</script>\n```\n\n## Functions\n\n| Manipulate                           | Query                          | Chop                                 | Case                           | Index                          |\n| :----------------------------------- | :----------------------------- | :----------------------------------- | :----------------------------- | :------------------------------|\n| [v.insert][insert]                   | [v.endsWith][endsWith]         | [v.charAt][charAt]                   | [v.camelCase][camelCase]       | [v.indexOf][indexOf]           |\n| [v.latinise][latinise]               | [v.includes][includes]         | [v.codePointAt][codePointAt]         | [v.capitalize][capitalize]     | [v.lastIndexOf][lastIndexOf]   |\n| [v.pad][pad]                         | [v.isAlpha][isAlpha]           | [v.first][first]                     | [v.decapitalize][decapitalize] | [v.search][search]             |\n| [v.padLeft][padLeft]                 | [v.isAlphaDigit][isAlphaDigit] | [v.graphemeAt][graphemeAt]           | [v.kebabCase][kebabCase]       | **Escape**                     |\n| [v.padRight][padRight]               | [v.isBlank][isBlank]           | [v.last][last]                       | [v.lowerCase][lowerCase]       | [v.escapeHtml][escapeHtml]     |\n| [v.repeat][repeat]                   | [v.isDigit][isDigit]           | [v.prune][prune]                     | [v.snakeCase][snakeCase]       | [v.escapeRegExp][escapeRegExp] |\n| [v.replace][replace]                 | [v.isEmpty][isEmpty]           | [v.slice][slice]                     | [v.swapCase][swapCase]         | [v.unescapeHtml][unescapeHtml] |\n| [v.replaceAll][replaceAll]           | [v.isLowerCase][isLowerCase]   | [v.substr][substr]                   | [v.titleCase][titleCase]       | **Strip**                      | \n| [v.reverse][reverse]                 | [v.isNumeric][isNumeric]       | [v.substring][substring]             | [v.upperCase][upperCase]       |  [v.stripBom][stripBom]        |\n| [v.reverseGrapheme][reverseGrapheme] | [v.isString][isString]         | [v.truncate][truncate]               | **Split**                      |  [v.stripTags][stripTags]      |\n| [v.slugify][slugify]                 | [v.isUpperCase][isUpperCase]   | **Count**                            | [v.chars][chars]               |                                |\n| [v.splice][splice]                   | [v.matches][matches]           | [v.count][count]                     | [v.codePoints][codePoints]     |                                |\n| [v.tr][tr]                           | [v.startsWith][startsWith]     | [v.countGraphemes][countGraphemes]   | [v.graphemes][graphemes]       |                                |\n| [v.trim][trim]                       | **Format**                     | [v.countSubstrings][countSubstrings] | [v.split][split]               |                                |\n| [v.trimLeft][trimLeft]               | [v.sprintf][sprintf]           | [v.countWhere][countWhere]           | [v.words][words]               |                                |\n| [v.trimRight][trimRight]             | [v.vprintf][vprintf]           | [v.countWords][countWords]           |                                |                                |\n| [v.wordWrap][wordWrap]               |                                |                                      |                                |                                |\n\n## Bug reports\n\nFor bug reports, documentation typos or feature requests feel free to create an [issue](https://github.com/panzerdp/voca/issues).  \nPlease make sure that the same problem wasn't reported already.\n\nFor general usage questions please ask on [StackOverflow](http://stackoverflow.com/questions/ask).\n\n## Contributing\n\nContribution is welcome!\n\n* Create a pull request containing bug fixes or new features. Include unit tests and keep the code coverage report near 100% 😎\n* [Propose](https://github.com/panzerdp/voca/issues/new) new functions, improvements, better documentation\n\nSee more details in [Contributing guide][CONTRIBUTING].\n\nPlease note that this project is released with a Contributor [Code of Conduct][CODE_OF_CONDUCT]. By participating in this project you agree to abide by its terms.\n\n## Author\n\n| ![Dmitri Pavlutin](https://s.gravatar.com/avatar/0d57a57d8807ebc70e24b46f6d9e3a36?s=100) |\n| :-: |\n| Dmitri Pavlutin\n| [Personal blog](https://dmitripavlutin.com)\n| [Email](mailto:dmitripavlutin@gmail.com)\n\n## License\n\nLicensed under [MIT](https://github.com/panzerdp/voca/blob/master/LICENSE.md)\n\n[CODE_OF_CONDUCT]: https://github.com/panzerdp/voca/blob/master/CODE_OF_CONDUCT.md\n[CONTRIBUTING]: https://github.com/panzerdp/voca/blob/master/.github/CONTRIBUTING.md\n[voca_min_js]: https://raw.githubusercontent.com/panzerdp/voca/v1.4.0/dist/voca.min.js\n[source_map]: https://raw.githubusercontent.com/panzerdp/voca/v1.4.0/dist/voca.min.js.map\n[voca_js]: https://raw.githubusercontent.com/panzerdp/voca/v1.4.0/dist/voca.js\n[voca]: https://vocajs.pages.dev\n[logo]: https://github.com/panzerdp/voca/raw/master/jsdoc/template/static/images/voca-logo@300px.png\n[logo_commonjs]: https://github.com/panzerdp/voca/raw/master/jsdoc/template/static/images/commonjs@200px.png\n[logo_browsers]: https://github.com/panzerdp/voca/raw/master/jsdoc/template/static/images/browsers@200px.png\n\n[camelCase]: https://vocajs.pages.dev/#camelCase\n[capitalize]: https://vocajs.pages.dev/#capitalize\n[decapitalize]: https://vocajs.pages.dev/#decapitalize\n[kebabCase]: https://vocajs.pages.dev/#kebabCase\n[lowerCase]: https://vocajs.pages.dev/#lowerCase\n[snakeCase]: https://vocajs.pages.dev/#snakeCase\n[swapCase]: https://vocajs.pages.dev/#swapCase\n[titleCase]: https://vocajs.pages.dev/#titleCase\n[upperCase]: https://vocajs.pages.dev/#upperCase\n\n[charAt]: https://vocajs.pages.dev/#charAt\n[codePointAt]: https://vocajs.pages.dev/#codePointAt\n[first]: https://vocajs.pages.dev/#first\n[graphemeAt]: https://vocajs.pages.dev/#graphemeAt\n[last]: https://vocajs.pages.dev/#last\n[prune]: https://vocajs.pages.dev/#prune\n[slice]: https://vocajs.pages.dev/#slice\n[substr]: https://vocajs.pages.dev/#substr\n[substring]: https://vocajs.pages.dev/#substring\n[truncate]: https://vocajs.pages.dev/#truncate\n\n[count]: https://vocajs.pages.dev/#count\n[countGraphemes]: https://vocajs.pages.dev/#countGraphemes\n[countSubstrings]: https://vocajs.pages.dev/#countSubstrings\n[countWhere]: https://vocajs.pages.dev/#countWhere\n[countWords]: https://vocajs.pages.dev/#countWords\n\n[escapeHtml]: https://vocajs.pages.dev/#escapeHtml\n[escapeRegExp]: https://vocajs.pages.dev/#escapeRegExp\n[unescapeHtml]: https://vocajs.pages.dev/#unescapeHtml\n\n[sprintf]: https://vocajs.pages.dev/#sprintf\n[vprintf]: https://vocajs.pages.dev/#vprintf\n\n[indexOf]: https://vocajs.pages.dev/#indexOf\n[lastIndexOf]: https://vocajs.pages.dev/#lastIndexOf\n[search]: https://vocajs.pages.dev/#search\n\n[insert]: https://vocajs.pages.dev/#insert\n[latinise]: https://vocajs.pages.dev/#latinise\n[pad]: https://vocajs.pages.dev/#pad\n[padLeft]: https://vocajs.pages.dev/#padLeft\n[padRight]: https://vocajs.pages.dev/#padRight\n[repeat]: https://vocajs.pages.dev/#repeat\n[replace]: https://vocajs.pages.dev/#replace\n[replaceAll]: https://vocajs.pages.dev/#replaceAll\n[reverse]: https://vocajs.pages.dev/#reverse\n[reverseGrapheme]: https://vocajs.pages.dev/#reverseGrapheme\n[slugify]: https://vocajs.pages.dev/#slugify\n[splice]: https://vocajs.pages.dev/#splice\n[tr]: https://vocajs.pages.dev/#tr\n[trim]: https://vocajs.pages.dev/#trim\n[trimLeft]: https://vocajs.pages.dev/#trimLeft\n[trimRight]: https://vocajs.pages.dev/#trimRight\n[wordWrap]: https://vocajs.pages.dev/#wordWrap\n\n[endsWith]: https://vocajs.pages.dev/#endsWith\n[includes]: https://vocajs.pages.dev/#includes\n[isAlpha]: https://vocajs.pages.dev/#isAlpha\n[isAlphaDigit]: https://vocajs.pages.dev/#isAlphaDigit\n[isBlank]: https://vocajs.pages.dev/#isBlank\n[isDigit]: https://vocajs.pages.dev/#isDigit\n[isEmpty]: https://vocajs.pages.dev/#isEmpty\n[isLowerCase]: https://vocajs.pages.dev/#isLowerCase\n[isNumeric]: https://vocajs.pages.dev/#isNumeric\n[isString]: https://vocajs.pages.dev/#isString\n[isUpperCase]: https://vocajs.pages.dev/#isUpperCase\n[matches]: https://vocajs.pages.dev/#matches\n[startsWith]: https://vocajs.pages.dev/#startsWith\n\n[chars]: https://vocajs.pages.dev/#chars\n[codePoints]: https://vocajs.pages.dev/#codePoints\n[graphemes]: https://vocajs.pages.dev/#graphemes\n[split]: https://vocajs.pages.dev/#split\n[words]: https://vocajs.pages.dev/#words\n\n[stripTags]: https://vocajs.pages.dev/#stripTags\n[stripBom]: https://vocajs.pages.dev/#stripBom","publish_time":1487011101878,"_cnpm_publish_time":1487011101878,"dist-tags":{"alpha":"1.0.0-alpha.0","latest":"1.4.1"}}