{"_id":"unist-util-to-list-of-char","_rev":"3-a2fd4f9f45439027ac9e8d79e72b2cea","name":"unist-util-to-list-of-char","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.1":{"name":"unist-util-to-list-of-char","version":"0.1.1","author":{"name":"LaySent","email":"laysent@gmail.com"},"bugs":{"url":"https://github.com/laysent/remark-lint-plugins/issues"},"homepage":"https://github.com/laysent/remark-lint-plugins","description":"functionality that helps generating list of characters in all visible text inside give node tree","keywords":["unist","remark","helper","util"],"main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/laysent/remark-lint-plugins.git"},"dependencies":{"unist-util-visit":"^1.4.0"},"devDependencies":{"eslint":"5.3.0","eslint-config-airbnb-base":"13.1.0","eslint-plugin-import":"^2.14.0","jest":"^24.1.0","remark":"^10.0.1"},"scripts":{"test":"jest","lint":"eslint *.js","prepublish":"npm run lint && npm run lint"},"_id":"unist-util-to-list-of-char@0.1.1","_nodeVersion":"11.9.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-z6Lxac3UWpDfP+jG41RMoeNUro83M05Om/f0u0AGd6YFHZtDn6ojk0tYPtqE+QUJ+iFGkOKIN/VH4YD/bIA5Tg==","shasum":"2659ed54e524c6ded8734c39f32faef738d23449","tarball":"https://registry.npmjs.org/unist-util-to-list-of-char/-/unist-util-to-list-of-char-0.1.1.tgz","fileCount":4,"unpackedSize":6110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcekFSCRA9TVsSAnZWagAAnzgQAJbwCKOMksRmkyUQBLs0\nEMX7r3J2uvEYmxmeAAdjQKafAsjgLMRZroje1JwHMcO4sXxqFTrWcBelibQD\nAK28JcU+HS0j1g00uhr+IhFL/oJDOpQJTM9xDL03TeLz/aTk/OawMpYAH/MP\nk1Zu4YLFxsxayJ/2qT1Ll1GuMCMacwsRwPcO3A31nBDPnqYXZT+pzThRR/Pa\nklEItMfwLvMEWGjhF8qwrnJXkC6ncI/CkDhXri8RAjDXlYzpKzG7NL0WZnH0\nAlu6A4v98lh8u6oWtnvBpQLiZu5BF5ymylOvKwUYHt9oEV0WV4XSa/4lUo1i\nvGoF6BuCATIlMQTogjJM4tXqyd2lUTX7SXY3YGTSLFMpp5OzMEu6mjyqBGZ+\nh5iW8XFq2gAjtiJzXANgUZ/PKofo36QE6s7oCblWFoQwV1IsHjcOULbh1jOG\nB2swJKu5aL8vWf2SfURO+6szKIEf41/9QI6ujNVywwlPGhY8auLqgWRlw8ry\nkplBqU4Y6O1DyZGQsu9EKV3ktC3VK3eDmnHv0Mq7MXOSE7f1Lqcc0dlYrJMN\n3nG6/aDv8rBSP67eyjFDxZNSBrnBtsGhLp+/WdQqJTzn9GW/Il4NUWp4Onnx\ntCk1M3pD6ddkMCp5gBxOrFCYy5QsmLbkeIwbgZj+CtUYVtu58DYeSfGjBj2r\nWDU9\r\n=2VPg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBk2TepfORL0HG0M5i4S5c1CgTs+2FEQewHM/AGVbCBAiAwfH0H8bYyod7HjhWpDgLb9LDXvHziaSfAhBegq/v++A=="}]},"maintainers":[{"name":"laysent","email":"laysent@hotmail.com"}],"_npmUser":{"name":"laysent","email":"laysent@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-to-list-of-char_0.1.1_1551515986405_0.8304036050648818"},"_hasShrinkwrap":false},"0.1.2":{"name":"unist-util-to-list-of-char","version":"0.1.2","author":{"name":"LaySent","email":"laysent@gmail.com"},"bugs":{"url":"https://github.com/laysent/remark-lint-plugins/issues"},"homepage":"https://github.com/laysent/remark-lint-plugins","description":"functionality that helps generating list of characters in all visible text inside give node tree","keywords":["unist","remark","helper","util"],"main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/laysent/remark-lint-plugins.git"},"dependencies":{"unist-util-visit":"^1.4.0"},"devDependencies":{"eslint":"5.3.0","eslint-config-airbnb-base":"13.1.0","eslint-plugin-import":"^2.14.0","jest":"^24.1.0","remark":"^10.0.1"},"scripts":{"test":"jest","lint":"eslint *.js","prepublish":"npm run lint && npm run lint"},"_id":"unist-util-to-list-of-char@0.1.2","_nodeVersion":"11.9.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-5lbFigjFtxEBxx8n9w16UwWjVepQvsamfIlgY3PPDJ+LPR3BmCE7P5ufZM0CE+yizjkuwK8FT8Z0sHfavIc0Cg==","shasum":"0bf702e093028a58078600ebb5e2a4a2cf58f0ae","tarball":"https://registry.npmjs.org/unist-util-to-list-of-char/-/unist-util-to-list-of-char-0.1.2.tgz","fileCount":4,"unpackedSize":6183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfUEJCRA9TVsSAnZWagAAUbcP/19oIJQVnJYWH/+pM/An\nYBSHSq1BuQG8E3EEo/zpe9ZURC0WZGM8xSKOYilfPL1DCktW7TI3ta6OzmUK\nv/Dkcxvuk02xTEIpmqIcLCa5wDOl9qEc8K7QECZfIvnHuExEyzoEp7Zf819F\nMAqvd6ESRXeDDgNzvXbYfPdAy/vW7IcbP3AHkDYeT9Zy3J/sG+QL1KXaIsOC\nR8baBWiEX2K2nXbdfDcyga6MOQjxrqy9nwxuf5uzw+l6ux07oECDAIHKWlsB\nTEwyey4V73joea5b7Y7y3LKgRYeb2+GCA5RodisD1309kN1ALK8KBtwPrrrq\nzkj5lunT8htHwUWIW4t5D7HM3Df8O+oBRZC5a+rCv5oWwMIlETiMaCbg2iZE\ncWrfeJG0GUWUs7H244G6jYbHyts2MeIEaK+/6CXqR7+1MkroaeeXV0bI0sMI\ncITNs4Th3Bnu0Z6DBNMLFc0YAYlZkpOPrJ++kM3HrCsos2mzlXa6YUKVbVV8\nI6sNYFXvifuUSGzeH6ESdLAg3fz2WM1xjQwh4umm30wNBfHfSciCoz4BYwh1\nbq9EQjDmUcT9HpcVUJdo3hlRMbuHKdiTX3D73xGw6FARMJxn+H0CDCVIhsBr\n0sxWJf0YJBKnGQ1mxWjQftJgIdF/MD/FdAQulR9I8+fkdl7d7lX3QsFOVhYf\nFzyf\r\n=Ofhc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbNCWNdjNCvFVReW5+NjwnBopJBM9kROradZxf73kUTgIgLY58ofFtrVmzSgqPw8QjVKt0tGgAvXCWEJZxpGmpSxY="}]},"maintainers":[{"name":"laysent","email":"laysent@hotmail.com"}],"_npmUser":{"name":"laysent","email":"laysent@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-to-list-of-char_0.1.2_1551712520369_0.10170252448563888"},"_hasShrinkwrap":false},"0.1.3":{"name":"unist-util-to-list-of-char","version":"0.1.3","author":{"name":"LaySent","email":"laysent@gmail.com"},"bugs":{"url":"https://github.com/laysent/remark-lint-plugins/issues"},"homepage":"https://github.com/laysent/remark-lint-plugins","description":"functionality that helps generating list of characters in all visible text inside give node tree","keywords":["unist","remark","helper","util"],"main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/laysent/remark-lint-plugins.git"},"dependencies":{"unist-util-generated":"^1.1.6","unist-util-visit":"^1.4.0"},"devDependencies":{"eslint":"5.3.0","eslint-config-airbnb-base":"13.1.0","eslint-plugin-import":"^2.14.0","jest":"^24.1.0","remark":"^10.0.1"},"scripts":{"test":"jest","lint":"eslint *.js","prepublish":"npm run lint && npm run lint"},"gitHead":"98d8e8c6f688d8fc8c94fef1c7762ea082056836","_id":"unist-util-to-list-of-char@0.1.3","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.13.1/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-f8GrLHdhBKfaW6mzJc25BKeUOqhsuiRXlGrXBtb3pmRT3QCuYS+jH4g7Uf52hjV7TLQN4PGnjzrTFMFXAQaprA==","shasum":"e441fb060c047948c1a00257d73e2591407f8e04","tarball":"https://registry.npmjs.org/unist-util-to-list-of-char/-/unist-util-to-list-of-char-0.1.3.tgz","fileCount":4,"unpackedSize":6364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLivDCRA9TVsSAnZWagAAlS0P/1GTlTfn5AmXeMvFwOvp\nnN93KSupJIboFMFstYe3nGcAd1Lg8nhl+1iNAlPX3AQ815qHB+cNmFAIuivr\nOz2GZjfhcWcZVZbZdcqJSl2yIn+YHGzihZPIxrPdRAwS6z7VIXFxqNW85pho\nFJpDQtqSF8Q31xHy3ol9aXqoJgIBw/t+LpQGHxSXIZZhmH85ug94Sh4Fz5Ht\nWwFSO3RShBGttbZ3BQH7+xqWALHdqjF7psvbX5z8bZyqcg9kYRy+5XIi6c9d\ndw/LD52UNlpDxx/8vJc49gYLujpihbrdJcQ3POMGc6Fco0fxIvvtEb0Xnbww\neuJNRIgce+FFXNU+4/g6EogC92a+gi86FgiXzeVzEIc9o7z7+p1Wl286pb3k\nArLRshZs5pOZd30kQ4yjB57tCRxJxaVCKV1v+xM062OqYWP1JkyFrQFq7jQl\nfA5vITYg2nI9tiZlT9Mi6ln5RO1o5kVE3XHaR1tVykQJoQpGe3vPJiANjf8a\nDPBYQhebyCTAhD17KoiTvN+y+8IV7/Bbx+eO2dvCxqVSF+kdXSLWt402eytr\nbQCItel5NzDobphmT8uaJiT85CQTDzOWSeqD4ywdA/YmMsIm6fVssv4G2w/u\nFNYMQyPF2FGWdQj0qiF4wrT++UKWzo1eroWXLpcp6OKgWmPDPQUkJ1Ehia1q\n4H1j\r\n=oQxg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjCDb1n3uEX/7KKd/R7sKdgVJmq7Nu63QtHHMw0MFjEgIgI3sMTH9kXVv3E0oR0aD9uJ1H3bGVW5DSkhNzvofxogA="}]},"_npmUser":{"name":"laysent","email":"laysent@hotmail.com"},"directories":{},"maintainers":[{"name":"laysent","email":"laysent@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-to-list-of-char_0.1.3_1613638595443_0.6497638349990502"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-02T08:39:46.404Z","0.1.1":"2019-03-02T08:39:46.508Z","modified":"2022-05-22T19:04:04.357Z","0.1.2":"2019-03-04T15:15:20.551Z","0.1.3":"2021-02-18T08:56:35.584Z"},"maintainers":[{"name":"laysent","email":"laysent@hotmail.com"}],"description":"functionality that helps generating list of characters in all visible text inside give node tree","homepage":"https://github.com/laysent/remark-lint-plugins","keywords":["unist","remark","helper","util"],"repository":{"type":"git","url":"git+https://github.com/laysent/remark-lint-plugins.git"},"author":{"name":"LaySent","email":"laysent@gmail.com"},"bugs":{"url":"https://github.com/laysent/remark-lint-plugins/issues"},"license":"MIT","readme":"# unist-util-to-list-of-char\n\nProvide API to provide list of each character inside [unist](https://github.com/syntax-tree/unist) node tree.\n\n## Installation\n\n```bash\nnpm install unist-util-to-list-of-char\n```\n\n## Usage\n\n```javascript\nvar remark = require('remark');\nvar toList = require('unist-util-to-list-of-char');\n\nvar tree = remark().parse('Some _emphasis_, **importance**, and `code`.');\n\nfunction callback(list) {\n  console.log(list);\n}\n\ntoList(tree, 'root', callback);\n```\n\nYields\n\n```javascript\n[\n  { value: 'S', line: 1, column: 1, offset: 0 },\n  { value: 'o', line: 1, column: 2, offset: 1 },\n  { value: 'm', line: 1, column: 3, offset: 2 },\n  { value: 'e', line: 1, column: 4, offset: 3 },\n  { value: ' ', line: 1, column: 5, offset: 4 },\n  { value: 'e', line: 1, column: 7, offset: 6 },\n  { value: 'm', line: 1, column: 8, offset: 7 },\n  { value: 'p', line: 1, column: 9, offset: 8 },\n  { value: 'h', line: 1, column: 10, offset: 9 },\n  { value: 'a', line: 1, column: 11, offset: 10 },\n  { value: 's', line: 1, column: 12, offset: 11 },\n  { value: 'i', line: 1, column: 13, offset: 12 },\n  { value: 's', line: 1, column: 14, offset: 13 },\n  { value: ',', line: 1, column: 16, offset: 15 },\n  { value: ' ', line: 1, column: 17, offset: 16 },\n  { value: 'i', line: 1, column: 20, offset: 19 },\n  { value: 'm', line: 1, column: 21, offset: 20 },\n  { value: 'p', line: 1, column: 22, offset: 21 },\n  { value: 'o', line: 1, column: 23, offset: 22 },\n  { value: 'r', line: 1, column: 24, offset: 23 },\n  { value: 't', line: 1, column: 25, offset: 24 },\n  { value: 'a', line: 1, column: 26, offset: 25 },\n  { value: 'n', line: 1, column: 27, offset: 26 },\n  { value: 'c', line: 1, column: 28, offset: 27 },\n  { value: 'e', line: 1, column: 29, offset: 28 },\n  { value: ',', line: 1, column: 32, offset: 31 },\n  { value: ' ', line: 1, column: 33, offset: 32 },\n  { value: 'a', line: 1, column: 34, offset: 33 },\n  { value: 'n', line: 1, column: 35, offset: 34 },\n  { value: 'd', line: 1, column: 36, offset: 35 },\n  { value: ' ', line: 1, column: 37, offset: 36 },\n  { value: 'c', line: 1, column: 38, offset: 37 },\n  { value: 'o', line: 1, column: 39, offset: 38 },\n  { value: 'd', line: 1, column: 40, offset: 39 },\n  { value: 'e', line: 1, column: 41, offset: 40 },\n  { value: '.', line: 1, column: 44, offset: 43 },\n]\n```\n\n## API\n\n`toList(tree[, test], callback)`\n\nThis function will iterate through given tree to generate list of characters from text.\n\nIf `test` is provided, only subset of tree will be used. `callback` might be triggered multiple\ntimes if there are multiple sub-trees.\n\n`callback` function will be triggered by given a list of nodes with following structure:\n\n```javascript\n{\n  value: 'c', // current character\n  column: 1,  // column number of this character\n  line: 1,    // line number of this character\n  offset: 1,  // offset number of this character\n}\n```\n\n## License\n\n[MIT](https://github.com/laysent/remark-lint-plugins/blob/master/LICENSE) © [LaySent](https://github.com/laysent)\n","readmeFilename":"README.md"}