{"name":"split-at","version":"1.0.0","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"},"devDependencies":{"ava":"0.0.4"},"gitHead":"9a825987fc5b7686f231f0e470b409d95662291d","bugs":{"url":"https://github.com/sindresorhus/split-at/issues"},"homepage":"https://github.com/sindresorhus/split-at","_id":"split-at@1.0.0","_shasum":"16b8d9aabc5a167dd0d7b0b43ebc8d2e3bc5fc9c","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"16b8d9aabc5a167dd0d7b0b43ebc8d2e3bc5fc9c","tarball":"http://registry-npm.ywwl.com/split-at/download/split-at-1.0.0.tgz","integrity":"sha512-CzcqbEdfQ+AULImGmfnDwULcEDQg+v7Cptr1WadL5raFyduIuefuEGSX2BaC0BV3IFUuubOamabbqjFV1Xz4og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwvsQnn0UrsMMHOGLlQ/KpiHKMIbY5ULkKKDTHBFjeZwIhAM+A4Gow9RtR8M6vNkUiMcK9cncJq4SgbpzVVX0osn0M"}],"size":1601,"noattachment":false,"key":"/split-at/-/split-at-1.0.0.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":1433079914169,"_cnpm_publish_time":1433079914169,"dist-tags":{"latest":"3.0.0"}}