{"_id":"browser-split","_rev":"304634","name":"browser-split","description":"Cross browser String#split implementation","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"juliangruber","email":""}],"time":{"modified":"2024-02-17T15:40:57.000Z","created":"2013-04-02T11:43:07.841Z","0.0.1":"2013-04-16T06:56:07.196Z","0.0.0":"2013-04-02T11:43:07.841Z"},"users":{},"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"repository":{"type":"git","url":"git://github.com/juliangruber/browser-split.git"},"versions":{"0.0.1":{"name":"browser-split","description":"Cross browser String#split implementation","version":"0.0.1","repository":{"type":"git","url":"git://github.com/juliangruber/browser-split.git"},"homepage":"https://github.com/juliangruber/browser-split","main":"index.js","scripts":{"test":"tape test/test.js"},"dependencies":{},"devDependencies":{"tape":"~0.3.3"},"keywords":["split","browser","browserify","regexp"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","chrome/24..latest","firefox/3.6,18..latest","safari/latest","opera/latest","iphone/6","ipad/6"]},"license":"MIT","readmeFilename":"README.md","_id":"browser-split@0.0.1","dist":{"shasum":"7b097574f8e3ead606fb4664e64adfdda2981a93","size":3361,"noattachment":false,"key":"/browser-split/-/browser-split-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/browser-split/download/browser-split-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":""}],"directories":{},"publish_time":1366095367196,"_hasShrinkwrap":false,"_cnpm_publish_time":1366095367196,"_cnpmcore_publish_time":"2021-12-16T14:45:41.964Z"},"0.0.0":{"name":"browser-split","description":"Cross browser String#split implementation","version":"0.0.0","repository":{"type":"git","url":"git://github.com/juliangruber/browser-split.git"},"homepage":"https://github.com/juliangruber/browser-split","main":"index.js","scripts":{"test":"tape test/test.js"},"dependencies":{},"devDependencies":{"tape":"~0.3.3"},"keywords":["split","browser","browserify","regexp"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","readmeFilename":"README.md","_id":"browser-split@0.0.0","dist":{"shasum":"41419caef769755929dd518967d3eec0a6262771","size":3128,"noattachment":false,"key":"/browser-split/-/browser-split-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/browser-split/download/browser-split-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":""}],"directories":{},"publish_time":1364902987841,"_hasShrinkwrap":false,"_cnpm_publish_time":1364902987841,"_cnpmcore_publish_time":"2021-12-16T14:45:42.168Z"}},"readme":"\n# browser-split\n\nCross browser String#split implementation.\n\n## Usage\n\n```js\nvar split = require('browser-split');\n\n// Basic use\nsplit('a b c d', ' ');\n// => ['a', 'b', 'c', 'd']\n\n// With limit\nsplit('a b c d', ' ', 2);\n// => ['a', 'b']\n\n// Backreferences in result array\nsplit('..word1 word2..', /([a-z]+)(\\d+)/i);\n// => ['..', 'word', '1', ' ', 'word', '2', '..']\n```\n\n## API\n\n### split(string, seperator[, limit])\n\nSplits a string into an array of strings using a regex or string separator. Matches of the\nseparator are not included in the result array. However, if `separator` is a regex that contains\ncapturing groups, backreferences are spliced into the result each time `separator` is matched.\nFixes browser bugs compared to the native `String.prototype.split` and can be used reliably\ncross-browser.\n\n* `string` is the String to split.\n* `seperator` is a RegExp or String to split by.\n* `limit` is the optional maximum number of items included in the result Array.\n\n## Installation\n\nWith [npm](http://npmjs.org) do\n\n```bash\n$ npm install browser-split\n```\n\n## License\n\n(MIT)\n\nCopyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt; \nCopyright 2007-2012 Steven Levithan &lt;stevenlevithan.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/juliangruber/browser-split","license":"MIT"}