{"name":"split-at","version":"1.0.1","description":"Split a string at one or more indices","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/split-at"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["split","cut","at","string","str","text","index","indexes","indices"],"dependencies":{"arrify":"^1.0.0","num-sort":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"abbb0e625fe6780c1e7f9af20974d6e52c6c8519","bugs":{"url":"https://github.com/sindresorhus/split-at/issues"},"homepage":"https://github.com/sindresorhus/split-at","_id":"split-at@1.0.1","_shasum":"f0cc00d576a05a9b242479a4b4b507f7ce5c2e0f","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f0cc00d576a05a9b242479a4b4b507f7ce5c2e0f","tarball":"http://registry-npm.ywwl.com/split-at/download/split-at-1.0.1.tgz","integrity":"sha512-DKXwh/sBMTnSWKGP6aDjd61nejEB7/zAm/W+GjHYUKbMHLyPMuf4uOm/A2Y5EAj023r60iSqMd6k85pxwHcGzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjSFp/JI4eW7lo6q+KlZniSP5co6zzMoInZoZZJE0DwQIhAIepkKJY0LGUEiotfLcekSLKCqfOlODvfJT+L/N/xKs4"}],"size":1617,"noattachment":false,"key":"/split-at/-/split-at-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# split-at\n\n> Split a string at one or more indices\n\n## Install\n\n```\n$ npm install split-at\n```\n\n## Usage\n\n```js\nimport splitAt from 'split-at';\n\nsplitAt('unicorn', 2);\n//=> ['uni', 'corn']\n\nsplitAt('unicorn', -2);\n//=> ['unico', 'rn']\n\nsplitAt('unicorn&rainbow', [6, 7]);\n//=> ['unicorn', '&', 'rainbow']\n\nsplitAt('unicorn&rainbow', 7, {remove: true});\n//=> ['unicorn', 'rainbow']\n```\n\n## API\n\n### splitAt(string, index, options?)\n\n#### string\n\nType: `string`\n\nString to be split.\n\n#### index\n\nType: `number | number[]`\n\nOne or more indices. A negative index is a 1-based position from the end of the string. For example, -1 is the index of the last place in the string. Duplicate indices are removed from the `index` array. A negative index and positive index that refer to the same position in the string are treated as duplicates.\n\n#### options\n\nType: `object`\n\n##### remove\n\nType: `boolean`\\\nDefault: `false`\n\nRemove the chosen indices.\n\nSimilar to the default `String#split` behaviour.\n\n## Related\n\n- [split-on-first](https://github.com/sindresorhus/split-on-first) - Split a string on the first occurrence of a given separator\n","publish_time":1433082298361,"_cnpm_publish_time":1433082298361,"dist-tags":{"latest":"3.0.0"}}