{"name":"string-tools","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.5","description":"Some useful functions for working with strings","repository":{"type":"git","url":"https://github.com/75lb/string-tools.git"},"main":"./lib/string-tools.js","keywords":["string","fill","pad","escape","regex","repeat"],"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js test/*.js; echo","docs":"jsdoc2md --index --skip-heading -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^0.2.15","tape":"^2.13.2"},"gitHead":"a1d5b7d7d1524afd043937adaccbe04430912375","bugs":{"url":"https://github.com/75lb/string-tools/issues"},"homepage":"https://github.com/75lb/string-tools","_id":"string-tools@0.1.5","_shasum":"c99e71b90e0dd4d59a7b0e240366c7a06e796177","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"c99e71b90e0dd4d59a7b0e240366c7a06e796177","tarball":"http://registry-npm.ywwl.com/string-tools/download/string-tools-0.1.5.tgz","integrity":"sha512-hkUokPJWEz4c8oWeeFC0o1uH8lMhgFaEbQHhv6OcaLpNJjT3AELmBYlHcN83kbDGa2PMweIdEO5wotPi37A+Rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnDdyPyQJ/UvNzrTCVri6K4lNLtrsoxdRRt/T4LZQ6yAiAYVH2xS7IkyP1fXeF83sXYNj+UUtL3eBArCvgl2j6hdA=="}],"size":2556,"noattachment":false,"key":"/string-tools/-/string-tools-0.1.5.tgz"},"directories":{},"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","publish_time":1404136308194,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1404136308194,"dist-tags":{"latest":"1.0.0"}}