{"name":"split-at","version":"1.2.0","description":"Split a string at one or more indices","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/split-at.git"},"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":{"array-uniq":"^1.0.2","arrify":"^1.0.0","num-sort":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"8983bad29fb18bf261ea4ba576e8558e5aaf5920","bugs":{"url":"https://github.com/sindresorhus/split-at/issues"},"homepage":"https://github.com/sindresorhus/split-at#readme","_id":"split-at@1.2.0","_shasum":"9961622b6ac9ff879b3a09632e4f6fec5a293024","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9961622b6ac9ff879b3a09632e4f6fec5a293024","tarball":"http://registry-npm.ywwl.com/split-at/download/split-at-1.2.0.tgz","integrity":"sha512-hTyZobArNQZhG6jp5crQEtIBRNbP3kPqPuEjqiv4xcABvqTS3ov3xfnPL9fw+3qfg5eDI4sXwk+eReZNVG6VCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDT1Jpfjm+sDSfsrnDcG7upSUKS/t8lCPdNGT9jYklAdAiAtihw3jnMBbIHETNLyjwHro5O6Eyb4HoP++0YL4CrKhw=="}],"size":1953,"noattachment":false,"key":"/split-at/-/split-at-1.2.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":1436881124822,"_cnpm_publish_time":1436881124822,"dist-tags":{"latest":"3.0.0"}}