{"_id":"string-split-by","_rev":"1-0550e17dc89fe05d7e3a7c89aad0605f","name":"string-split-by","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"string-split-by","version":"1.0.0","description":"Split string by any separator excluding brackets, quotes and escaped characters","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dy/string-split-by.git"},"keywords":["split-string","string-split","split-stirng-words","space","string","split"],"author":{"name":"Dmitry Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dy/string-split-by/issues"},"homepage":"https://github.com/dy/string-split-by#readme","dependencies":{"parenthesis":"^3.1.5"},"devDependencies":{"tape":"^4.9.0"},"gitHead":"3ff6bad901402cd70e8aaadd38c147a88eae3368","_id":"string-split-by@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"integrity":"sha512-KaJKY+hfpzNyet/emP81PJA9hTVSfxNLS9SFTWxdCnnW1/zOOwiV248+EfoX7IQFcBaOp4G5YE6xTJMF+pLg6A==","shasum":"53895fb3397ebc60adab1f1e3a131f5372586812","tarball":"https://registry.npmjs.org/string-split-by/-/string-split-by-1.0.0.tgz","fileCount":6,"unpackedSize":10761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDGKqCRA9TVsSAnZWagAAmeIP/3zsPd+XWbG4Fv9gDEQX\n4R17kCM6/Mm796D/Z2q/fE8TkLk2GUQQTlXszyayWACZFUIAH8JLbOC8UCtf\nafc2X3cMbS0tHn96kmffPEYpKuUbFy4zU0yjsXNzftGwD5hBioGcjJGJlFQx\nKqiU5lI5Fe3jBFoIFKIvN/MIHnnOjcqIK2h4y4VvF2duQetHQf6umq+LKT/R\nQ6vEcWc2UPKTpb80RwdxfF7GdHvtGZILv+hkBnXifKVwXB5iyXiuLNNTtmA+\nx0SX55a4I5PDhknt6Am2O8eDtjOmHTs9+iTmChrmtq9TrjzI7MwoRb+jlz4/\nZ5fP/3xVi7jJBbucJ4ae55hZdFdnMLP0LTISTy1dIwokleaa4bG5c6h1wLd0\n0rHKTVMe0hlH2ixQ9gLryjWNw8VarAmrCsm/7Mhkopfr8gQSQdlXjcIEhxw5\nkOKCH5WPtR4m9MF5e7p1+wJZoK1U6qVyHpMCgepsJMy2OCmPmKdVx6Urncfo\n14gtcF6rzOrpLJAuaY4xxuMzfFym7OcRNVh8X4OXLFGjDKWT4jbOiK2LVkNz\nF+ZSKJDbLLSaQnKu8WSXk1AYthQC7ufz6hsGprrwrmqy5/Z1tKNIRP5HaWzq\nF7arpU0HIExs/dM8Zo2NS0tsuSnUKzrKxMpSNa/s8yarj8cUHRF+ORewUlAg\nV0Bg\r\n=GOr4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFMfBIBPOdbNczTsZlkACP+hEO0oYdC7y56yM5p5msxUAiEAiJCEnIXUToPdt65Wlyl+UPAyJutDbPzCONconAH0IYw="}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string-split-by_1.0.0_1527538345685_0.5204736141583564"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-28T20:12:25.684Z","1.0.0":"2018-05-28T20:12:25.766Z","modified":"2022-05-18T20:52:45.372Z"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"description":"Split string by any separator excluding brackets, quotes and escaped characters","homepage":"https://github.com/dy/string-split-by#readme","keywords":["split-string","string-split","split-stirng-words","space","string","split"],"repository":{"type":"git","url":"git+https://github.com/dy/string-split-by.git"},"author":{"name":"Dmitry Yv","email":"dfcreative@gmail.com"},"bugs":{"url":"https://github.com/dy/string-split-by/issues"},"license":"MIT","readme":"# string-split-by [![unstable](https://img.shields.io/badge/stability-unstable-orange.svg)](http://github.com/badges/stability-badges) [![Build Status](https://img.shields.io/travis/dy/string-split-by.svg)](https://travis-ci.org/dy/string-split-by)\r\n\r\nSplit string by a separator with respect to brackets, quotes and escape markers. Optimized version of [string-split](https://github.com/jonschlinkert/split-string).\r\n\r\n## Usage\r\n\r\n[![npm install string-split-by](https://nodei.co/npm/string-split-by.png?mini=true)](https://npmjs.org/package/string-split-by/)\r\n\r\n\r\n```js\r\nvar split = require('string-split-by')\r\n\r\nsplit('a.\"b.c\".d.{.e.f.g.}.h', '.')\r\n// ['a', '\"b.c\"', 'd', '{.e.f.g.}', 'h']\r\n\r\nsplit('a.\"b.c\".d.{.e.f.g.}.h', '.', {ignore: '\"\"'})\r\n// ['a', '\"b.c\"', 'd', '{', 'e', 'f', 'g', '}', 'h']\r\n```\r\n\r\n## API\r\n\r\n### parts = splitBy(string, separator, options?)\r\n\r\nReturn array with parts split from string by a separator, which can be whether _String_ or _RegExp_. Options can define:\r\n\r\nOption | Default | Meaning\r\n---|---|---\r\n`ignore` | ``['\"', \"'\", '`', '“”', '«»', '[]', '()', '{}']`` | Avoid splitting content enclosed in the character pairs. Can be a string or a list of strings.\r\n`escape` | `true` | Avoid splitting at the escaped separator, eg. `\\.` won't be separated by `'.'` separator.\r\n\r\n\r\n## Related\r\n\r\n* [parenthesis](http://npmjs.org/package/parenthesis)\r\n\r\n## License\r\n\r\n© 2018 Dmitry Yv. MIT License\r\n","readmeFilename":"readme.md"}