{"_id":"split-at","_rev":"10-8838c13bb3759b07875233b053e3677e","name":"split-at","description":"Split a string at one or more indices","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"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":"https://registry.npmjs.org/split-at/-/split-at-1.0.0.tgz","integrity":"sha512-CzcqbEdfQ+AULImGmfnDwULcEDQg+v7Cptr1WadL5raFyduIuefuEGSX2BaC0BV3IFUuubOamabbqjFV1Xz4og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwvsQnn0UrsMMHOGLlQ/KpiHKMIbY5ULkKKDTHBFjeZwIhAM+A4Gow9RtR8M6vNkUiMcK9cncJq4SgbpzVVX0osn0M"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.1":{"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":"https://registry.npmjs.org/split-at/-/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"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.1.0":{"name":"split-at","version":"1.1.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","num-sort":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"a5f685d6bb0f81ca9e13e100527ce79ca3d616af","bugs":{"url":"https://github.com/sindresorhus/split-at/issues"},"homepage":"https://github.com/sindresorhus/split-at","_id":"split-at@1.1.0","_shasum":"649b3fd13901f598fba368fd089c486334d4b19d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"649b3fd13901f598fba368fd089c486334d4b19d","tarball":"https://registry.npmjs.org/split-at/-/split-at-1.1.0.tgz","integrity":"sha512-+JIAXkhJu1eQ+/O14yh3BEbf4XV9xShwYqTeJAggC1pJmDF1y5mYaXzUJrAuHKxAB5C1oo0zrhdgUTYWuv26QA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCX6W3fu+zK34Bpbgy0xFNE2tkmJjiSWfsOF3ht3C+yaQIgdVMmJ2gWHgzcBm0lqavG9vT0UVveZpKqcbjyUVFfw+0="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.2.0":{"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":"https://registry.npmjs.org/split-at/-/split-at-1.2.0.tgz","integrity":"sha512-hTyZobArNQZhG6jp5crQEtIBRNbP3kPqPuEjqiv4xcABvqTS3ov3xfnPL9fw+3qfg5eDI4sXwk+eReZNVG6VCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDT1Jpfjm+sDSfsrnDcG7upSUKS/t8lCPdNGT9jYklAdAiAtihw3jnMBbIHETNLyjwHro5O6Eyb4HoP++0YL4CrKhw=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"split-at","version":"2.0.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":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["split","cut","at","string","text","index","indexes","indices"],"dependencies":{"array-uniq":"^2.1.0","arrify":"^2.0.1","num-sort":"^2.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"3f3b5c346d100802484bd72996a398851e3a6b27","bugs":{"url":"https://github.com/sindresorhus/split-at/issues"},"homepage":"https://github.com/sindresorhus/split-at#readme","_id":"split-at@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Els/ZPH54+VRTLmwC0yRLyLlXH7WPh39DTLRSDzjv4t+O95q55dJBICoz25erNvUvsAAVBmC/VKwh5GkuIKHLw==","shasum":"5bfe233e6d7eeb5c59290a9bf08691f5f1005737","tarball":"https://registry.npmjs.org/split-at/-/split-at-2.0.0.tgz","fileCount":5,"unpackedSize":4828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvuhxCRA9TVsSAnZWagAAH5kQAJQqsQWNKNGBNVV7j3S6\nBIA41gHDL+C3hcEO6fjWjH6fx0lpvXcE3m6KMBXbXUekmAnl+XlD9EbX/fNX\neQJQ/EZMuR6o4pmKcSWvKMyQyekz06eL29jH5QimpeDNfkX2fZ3BONjy7k+g\n8ZO+QTQHNkUjME1dk8780IM+aOPOFgO06pesJx2wyUO1SYXUO84p1fFMB9dY\nYzXoJ0ffBefLRrwcju5KrZVofDD0MV29n1IlaAskE1vZCp32jzUrjn2bsmiy\ndDV6AloHfyzEQrFQdZ0ODvlQrXwNOAG4SsS0ymqGZO5U/UgRKL3juRhfwNVp\nmXNSA1IszHp5mrDW75EPqOM2ZZEF7pr/NB7HVKV4NyuPicqXtHEzO+FEs0eV\nrhXWK+GhorhdWu/O9d5LpQNpsdDOK6G1j3zRqEIJXSSNsvxD+6syqzhZuDCh\na+g9p2lEZotvEZuwCQpOICSLSm5EfneVaNZxeWLFxgA9J+3ntOYM7cn7Ywep\nD3Beuvp9kAihmwIob2A0Cwc1YFm6oZ0VUGVORN2ug730rw3ARVnKxBVQtiqm\n8DQtOGmMIicwxH50QzeQBrVeN7cZSARqh+caC6B6xRyGhWotNLWVKvzqen9M\n0IgrfcuT5lq+9zvQjhjdNHkGTdSN2iWgFotx81XVujKoLhVbMG8w7W5pW+si\nlVVl\r\n=tipf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqaJSpG8qoQ1XQAqIz95hkKfnDNENLsdGgYWU+PDUiRQIgGRNEt4d2QkCjVwaMofKdWQ0i7ysJuw1zrIMVKsU7gOo="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split-at_2.0.0_1556015216951_0.5972694522534987"},"_hasShrinkwrap":false},"3.0.0":{"name":"split-at","version":"3.0.0","description":"Split a string at one or more indices","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/split-at.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["split","cut","at","string","text","index","indexes","indices"],"dependencies":{"array-uniq":"^3.0.0","arrify":"^3.0.0","num-sort":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"b20441c4c46fd303b98c91f333b1ad529ae04ce5","bugs":{"url":"https://github.com/sindresorhus/split-at/issues"},"homepage":"https://github.com/sindresorhus/split-at#readme","_id":"split-at@3.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-CXacHHs293c+c6+V5LYOqlZq5oohV44vXP1vYex+8HoDpGdhEMpqh7gj6bOYxMVJW0YzDi/OuOz4Ghux+v19yw==","shasum":"61043533652450219e5f84b3526b1a3f7e3293d3","tarball":"https://registry.npmjs.org/split-at/-/split-at-3.0.0.tgz","fileCount":5,"unpackedSize":4702,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkFWvCRA9TVsSAnZWagAAmRwP/iCMpAyqnoaKwh0leP+L\nlZf/9GYC+7hmahNuwyvIYcF6Lkf5JsUk87zQNLDPpN503LHPjomsgP1uBr3v\nj5mU7VPEBgpBnBiBhIFqTLpHjrPxz8yCUXvx2MhkfPjx/C8T92UaCVU+Jivk\nl2dPBbN7f9WZPaSAKFZZl1irsHc+ZYZ/Rf151nIVgExvz7iM/I4pU/xCCUF0\noip7cJAIA2eLxKqy6bn9fn5/kzjAMLhx53mPl4CrMqyUmfjWuskwdtWxtfOK\nYZhs0lVi0y1aJ71nKIyo+gVwa9yzbQwqxh44pZAEiyQjHWEdMECaUwzyDfJU\n6WH9JkVBnHJ3chMEhSPEeEWRVdTGm+ttDa4a9Ux2/TXJIZ4bh//w1oNf6WDj\n1XbKtVnX8WRLJeHEkf1M+BHRfG+SULxfqSqUoo0liVh4HBoB9HHj9Xud6j+E\nvF37hRD/WTscVWfy5B222ziFEN6P4JmRyLMU3KdZH1KYTQTuswe1Oxpxsvay\nMbV5YajnxsAB9d0xKOCMujNaSIQv2gI/0w/arsdh+HgTyvtk5WqXfm9thBAz\nGQaw+nlMmmMAxASeL+47bcd5B5tJCd56wf/eYFVxfU8hQrZa61SCQreu+OXI\nst2tzSNio+xG9sPlda+53yan3xfORA5tOyyJiwLF6ezYQKsCoEC5fCERkTn+\nbYMS\r\n=izyI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICu0l/uLYdt7uDnWcE3wKu4rDeiDcId+PM7sIoIpWSk2AiB4QfxCgbeRcpUNIV5fQpryyT56IqOOSPCB7gZrlPA/+w=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split-at_3.0.0_1620071855233_0.47962171384835006"},"_hasShrinkwrap":false}},"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","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-26T22:56:56.897Z","created":"2015-05-31T13:45:14.169Z","1.0.0":"2015-05-31T13:45:14.169Z","1.0.1":"2015-05-31T14:24:58.361Z","1.1.0":"2015-06-15T23:03:48.620Z","1.2.0":"2015-07-14T13:38:44.822Z","2.0.0":"2019-04-23T10:26:57.123Z","3.0.0":"2021-05-03T19:57:35.360Z"},"homepage":"https://github.com/sindresorhus/split-at#readme","keywords":["split","cut","at","string","text","index","indexes","indices"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/split-at.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/split-at/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"rocket0191":true}}