{"_id":"string-tools","_rev":"13-e6646fb6ab9e6ce41b1cc5f4a849bfc6","name":"string-tools","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.4":{"name":"string-tools","version":"0.1.4","keywords":["string","fill","pad","escape","regex"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"_id":"string-tools@0.1.4","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/string-tools","bugs":{"url":"https://github.com/75lb/string-tools/issues"},"dist":{"shasum":"302155aef9a81c63d6599f39e95a235bf6e718e4","tarball":"https://registry.npmjs.org/string-tools/-/string-tools-0.1.4.tgz","integrity":"sha512-NpzDAQfDQVFPreaaE8pGY8n75HB1eL1kMrAzWqnjThRE3z+1AtS4aLE0eBEyKw+x1B10Sw0tAGiIih16DLRftg==","signatures":[{"sig":"MEQCIDFNuuM/wgzFRUduMAefSmrjGb3Kuyil4EHzYKIOKt1NAiAndP+CJxUd30gzJsrkz25qVIvFrDbnWGyvDGsyk+9fBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/string-tools.js","_from":".","_shasum":"302155aef9a81c63d6599f39e95a235bf6e718e4","gitHead":"6a00c982b1241025bae90ba85c82100e1b4b0eec","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"https://github.com/75lb/string-tools.git","type":"git"},"_npmVersion":"1.4.15","description":"Some useful functions for working with strings","devDependencies":{"tape":"^2.13.2"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.5":{"name":"string-tools","version":"0.1.5","keywords":["string","fill","pad","escape","regex","repeat"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"_id":"string-tools@0.1.5","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/string-tools","bugs":{"url":"https://github.com/75lb/string-tools/issues"},"dist":{"shasum":"c99e71b90e0dd4d59a7b0e240366c7a06e796177","tarball":"https://registry.npmjs.org/string-tools/-/string-tools-0.1.5.tgz","integrity":"sha512-hkUokPJWEz4c8oWeeFC0o1uH8lMhgFaEbQHhv6OcaLpNJjT3AELmBYlHcN83kbDGa2PMweIdEO5wotPi37A+Rw==","signatures":[{"sig":"MEQCIAnDdyPyQJ/UvNzrTCVri6K4lNLtrsoxdRRt/T4LZQ6yAiAYVH2xS7IkyP1fXeF83sXYNj+UUtL3eBArCvgl2j6hdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/string-tools.js","_from":".","_shasum":"c99e71b90e0dd4d59a7b0e240366c7a06e796177","gitHead":"a1d5b7d7d1524afd043937adaccbe04430912375","scripts":{"docs":"jsdoc2md --index --skip-heading -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"https://github.com/75lb/string-tools.git","type":"git"},"_npmVersion":"1.4.16","description":"Some useful functions for working with strings","devDependencies":{"tape":"^2.13.2","jsdoc-to-markdown":"^0.2.15"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.6":{"name":"string-tools","version":"0.1.6","keywords":["string","fill","pad","escape","regex","repeat"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"_id":"string-tools@0.1.6","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/string-tools","bugs":{"url":"https://github.com/75lb/string-tools/issues"},"dist":{"shasum":"3fe4977844e55491a74c8b743afdb60c2208eb3f","tarball":"https://registry.npmjs.org/string-tools/-/string-tools-0.1.6.tgz","integrity":"sha512-OmfBmRI5M4ROt1caiA5OgnxubawRf+7R38ebP54Ce33iiTTJ3ePHy2Gi1s0LhaubYLAvqD0GQBiGPmV9wFEvJw==","signatures":[{"sig":"MEQCICQ9pivClqnVdJ62Q7Ha93ahxggu6f3cZpeQT17oZkq9AiAuq9fdng6usLeFZ0neve5LlOfXb8mZ4G9UmNqa4UwqNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/string-tools.js","_from":".","_shasum":"3fe4977844e55491a74c8b743afdb60c2208eb3f","gitHead":"fe71036b137adb1059ef2e6c53afbbcf9efc522f","scripts":{"docs":"jsdoc2md -d 1 -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"https://github.com/75lb/string-tools.git","type":"git"},"_npmVersion":"2.5.1","description":"Some useful functions for working with strings","_nodeVersion":"0.12.0","devDependencies":{"tape":"^3.5"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.7":{"name":"string-tools","version":"0.1.7","keywords":["string","fill","pad","escape","regex","repeat"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"_id":"string-tools@0.1.7","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/string-tools","bugs":{"url":"https://github.com/75lb/string-tools/issues"},"dist":{"shasum":"379a2c415a3748ecd222e97d01168fc117607ab8","tarball":"https://registry.npmjs.org/string-tools/-/string-tools-0.1.7.tgz","integrity":"sha512-SRScw9SZfCLE8UWYRhVWX3DXb5/BI04hlI66Eb+i8MaRa8igetHxvg8OkKuakd4StYvkjVjAYIVavGm1ORQk3A==","signatures":[{"sig":"MEUCIB0xYiArPSFxZ2luwc64FQIaJxhns61bIKuaPAAGmnnRAiEAm+YRgJndRHiqGEyJzhBufLQosxLam0aymHHopuG0PWU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/string-tools.js","_from":".","_shasum":"379a2c415a3748ecd222e97d01168fc117607ab8","gitHead":"889d80e8560e4f19cd1d91741dae9d2082da423b","scripts":{"docs":"jsdoc2md -d 1 -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"https://github.com/75lb/string-tools.git","type":"git"},"_npmVersion":"2.5.1","description":"Some useful functions for working with strings","_nodeVersion":"0.12.0","devDependencies":{"tape":"^3.5"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.8":{"name":"string-tools","version":"0.1.8","keywords":["string","fill","pad","escape","regex","repeat"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"string-tools@0.1.8","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/string-tools#readme","bugs":{"url":"https://github.com/75lb/string-tools/issues"},"dist":{"shasum":"70884e86a26ee5103a078bef67033d558d36e337","tarball":"https://registry.npmjs.org/string-tools/-/string-tools-0.1.8.tgz","integrity":"sha512-OHaYAjvTq1WPOF4+mAYZy03UpCzhQ5h/fZ/mO+HHJDXMa5jNBB696NBQJ5EX6NQMiX5E971RN8JPZJ1qFxyrQQ==","signatures":[{"sig":"MEUCIFtjx/MYwZBJ4iNIxDyfPejaPP1CBVlxuK2ERqOPo1usAiEAtY1jH+ABY0XMk2N13fHYDlEmkyKOcwg+WaBGScua+z0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/string-tools.js","_from":".","_shasum":"70884e86a26ee5103a078bef67033d558d36e337","gitHead":"e4561187b67a961e900f95aa27b79dad78e0db71","scripts":{"docs":"jsdoc2md -d 1 -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/string-tools.git","type":"git"},"_npmVersion":"2.9.0","description":"Some useful functions for working with strings","_nodeVersion":"0.12.2","devDependencies":{"tape":"^4"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.0":{"name":"string-tools","version":"1.0.0","keywords":["string","fill","pad","escape","regex","repeat"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"string-tools@1.0.0","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/string-tools#readme","bugs":{"url":"https://github.com/75lb/string-tools/issues"},"dist":{"shasum":"c69a9d5788858997da66f1d923ba7113ea466b5a","tarball":"https://registry.npmjs.org/string-tools/-/string-tools-1.0.0.tgz","integrity":"sha512-wN3ILcVQFIf7skV2S9/6tSgK+11RAGDVt8luHaEN/RGOOHQAyBblnfEIVS1qeF+91LlTkp1lqMoglibfWnkIkg==","signatures":[{"sig":"MEQCIHKwtnu7RSMNoVI3bGhzFTQmfIuhdl2CdTSyXWG66jYQAiBVORDTba2gnOuDGr0UL97GA3BV4LTdvRORC3RdnUMJkQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/string-tools.js","_from":".","_shasum":"c69a9d5788858997da66f1d923ba7113ea466b5a","gitHead":"ff6afacd534681dd8f7a6716a499f8b126a2943c","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/string-tools.git","type":"git"},"_npmVersion":"3.3.4","description":"Some useful functions for working with strings","_nodeVersion":"4.1.0","devDependencies":{"tape":"^4"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2014-06-13T21:08:30.365Z","modified":"2024-09-15T17:14:05.087Z","0.1.4":"2014-06-13T21:08:30.365Z","0.1.5":"2014-06-30T13:51:48.194Z","0.1.6":"2015-02-22T02:03:37.055Z","0.1.7":"2015-02-22T02:05:29.447Z","0.1.8":"2015-05-03T21:11:38.426Z","1.0.0":"2015-09-20T19:37:16.583Z"},"bugs":{"url":"https://github.com/75lb/string-tools/issues"},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","homepage":"https://github.com/75lb/string-tools#readme","keywords":["string","fill","pad","escape","regex","repeat"],"repository":{"url":"git+https://github.com/75lb/string-tools.git","type":"git"},"description":"Some useful functions for working with strings","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"readme":"[![view on npm](http://img.shields.io/npm/v/string-tools.svg)](https://www.npmjs.org/package/string-tools)\n[![npm module downloads per month](http://img.shields.io/npm/dm/string-tools.svg)](https://www.npmjs.org/package/string-tools)\n[![Build Status](https://travis-ci.org/75lb/string-tools.svg?branch=master)](https://travis-ci.org/75lb/string-tools)\n[![Dependency Status](https://david-dm.org/75lb/string-tools.svg)](https://david-dm.org/75lb/string-tools)\n\n<a name=\"module_string-tools\"></a>\n## string-tools\n**Example**  \n```js\nvar s = require(\"string-tools\");\n```\n\n* [string-tools](#module_string-tools)\n  * [.symbol](#module_string-tools.symbol)\n  * [.escapeRegExp()](#module_string-tools.escapeRegExp)\n  * [.fill(fillWith, len)](#module_string-tools.fill) ⇒ <code>string</code>\n  * [.padRight(input, width, [padWith])](#module_string-tools.padRight) ⇒ <code>string</code>\n  * [.repeat(input, times)](#module_string-tools.repeat) ⇒ <code>string</code>\n  * [.clipLeft(input, width, [prefix])](#module_string-tools.clipLeft) ⇒ <code>string</code>\n\n<a name=\"module_string-tools.symbol\"></a>\n### s.symbol\nsome cross platform symbols (`tick` and `cross`)\n\n**Kind**: static property of <code>[string-tools](#module_string-tools)</code>  \n<a name=\"module_string-tools.escapeRegExp\"></a>\n### s.escapeRegExp()\nescape special regular expression characters\n\n**Kind**: static method of <code>[string-tools](#module_string-tools)</code>  \n**Example**  \n```js\n> s.escapeRegExp(\"(.*)\");\n'\\\\(\\\\.\\\\*\\\\)'\n```\n<a name=\"module_string-tools.fill\"></a>\n### s.fill(fillWith, len) ⇒ <code>string</code>\nCreate a new string filled with the supplied character\n\n**Kind**: static method of <code>[string-tools](#module_string-tools)</code>  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| fillWith | <code>string</code> | the fill character |\n| len | <code>number</code> | the length of the output string |\n\n**Example**  \n```js\n> s.fill(\"a\", 10)\n'aaaaaaaaaa'\n> s.fill(\"ab\", 10)\n'aaaaaaaaaa'\n```\n<a name=\"module_string-tools.padRight\"></a>\n### s.padRight(input, width, [padWith]) ⇒ <code>string</code>\nAdd padding to the right of a string\n\n**Kind**: static method of <code>[string-tools](#module_string-tools)</code>  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| input | <code>string</code> |  | the string to pad |\n| width | <code>number</code> |  | the desired final width |\n| [padWith] | <code>string</code> | <code>&quot;\\&quot; \\&quot;&quot;</code> | the padding character |\n\n**Example**  \n```js\n> s.padRight(\"clive\", 1)\n'clive'\n> s.padRight(\"clive\", 1, \"-\")\n'clive'\n> s.padRight(\"clive\", 10, \"-\")\n'clive-----'\n```\n<a name=\"module_string-tools.repeat\"></a>\n### s.repeat(input, times) ⇒ <code>string</code>\nreturns the input string repeated the specified number of times\n\n**Kind**: static method of <code>[string-tools](#module_string-tools)</code>  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>string</code> | input string to repeat |\n| times | <code>number</code> | the number of times to repeat |\n\n<a name=\"module_string-tools.clipLeft\"></a>\n### s.clipLeft(input, width, [prefix]) ⇒ <code>string</code>\nreturns the input string clipped from the left side in order to meet the specified `width`\n\n**Kind**: static method of <code>[string-tools](#module_string-tools)</code>  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| input | <code>string</code> |  | input string to repeat |\n| width | <code>number</code> |  | the desired final width |\n| [prefix] | <code>string</code> | <code>&quot;...&quot;</code> | the prefix to replace the clipped region |\n\n\n* * *\n\n&copy; 2015 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","readmeFilename":"README.md"}