{"name":"klor","version":"0.34.0","description":"syntax highlighting","keywords":["syntax","highlighting","coffeescript"],"main":"js/main.js","author":{"name":"monsterkodi"},"license":"Unlicense","repository":{"type":"git","url":"git+https://github.com/monsterkodi/klor.git"},"bugs":{"url":"https://github.com/monsterkodi/klor/issues"},"scripts":{"test":"mocha -c --require koffee/js/register ./coffee/test.coffee","watch":"onchange coffee/test.coffee coffee/klor.coffee -- npm run test"},"dependencies":{"kxk":"^0.292.0"},"devDependencies":{"assert":"^2.0.0","chai":"^4.2.0","koffee":"^0.45.0","mocha":"^6.1.4","onchange":"^6.0.0"},"gitHead":"89ea980fc69488488728f16ea4153331ee399899","homepage":"https://github.com/monsterkodi/klor#readme","_id":"klor@0.34.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-semzMSBY2chhB309/eTxm0YPP9hn34oplczduZPoJZ2LbvGthGcg3DhO6kYJcqrVH05CBBIZ8S5sFBPiqFKdyQ==","shasum":"61c4a4889c41c4d3a974aa93d2f6ca746ed59368","tarball":"http://registry-npm.ywwl.com/klor/download/klor-0.34.0.tgz","fileCount":17,"unpackedSize":669022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6v7UCRA9TVsSAnZWagAAIIAP/A/vOMi+BV46kqrF6WOM\niXW8owGFqCEJ4upPKnjgaP/avZqVhvkIjBnrzP5lrUieYkH8l0VM45B7bnwd\nNiNDnf/hXAv/JcLV/9rAfKgwNn8DGa+I9RuUOoc7P53hAPQCpR1J8mya1aMu\ni7la9H6b90YZq1x1odbfwtt8VAHy0z4OR6TbMqbNEfiB4xmMmNsyptY6t1If\n3qSTWQsPxKY6ERfMkZYKhAxS6MH/h59QVPyXhDsmi0W2eIznnKfKLw0jKhrR\n0lGSIalmDBXKSCH3YCSMLOV4eLl5B63kIsp27pdIe9oJiN3bTuagXZprkwUC\njUvcu5qfUYS18IUrSCUv4MwKeKNuE6J6nEXlLUbgUzXdNp88Vb2CM0D2/yoh\nPLXRj9ieKNVWqc9YIBrTkUnZDGRiPRMbaGFYniSvmDkGR7BBuqKNMWVzQeqV\nnGpBpt3HY73jFSKBAZtUlji+HF8ejSDLfOCLRgVzcaN2iiO9RG1vFkz+ZKe/\n18qBzDg9T1RUNFgPjYwmDX8cYc66KoMxs+O0x5mJ0ZrenaTPHXGOOFG4vDSK\n+Zgbz3dK2l0Q17jlrKSnWhyLW29hM2HOZpvJJaZHHP3ua5UXytHyXP0fWJIX\nThUZj2ty9g6c0Xy4sD7flAapAFiOr/9lgxO1xD14SLvfiXILvSHTABmowFzm\nAz9w\r\n=ipkS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGQSi1aoWtgxxfCHFpPmehb/vsdUQws9BwAZmcT7vivwIhALhKeZc11gamJXod1xSQFzxTl1zhLPMAJja49VStWo9g"}],"size":122589,"noattachment":false,"key":"/klor/-/klor-0.34.0.tgz"},"maintainers":[{"name":"monsterkodi","email":"monsterkodi@gmx.net"}],"_npmUser":{"name":"monsterkodi","email":"monsterkodi@gmx.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/klor_0.34.0_1558904531772_0.9710447393110249"},"_hasShrinkwrap":false,"readme":"\n![klor](test/sample.png)\n\n**klor** is a simple syntax highlighting tool.\nIt exports the following function:\n\n### **parse** *lines*, *ext*\n\n- *lines*: array of strings\n- *ext*: file type\n    - coffee js ts \n    - styl css sass\n    - pug html svg \n    - bash fish sh \n    - cpp hpp c h \n    - noon json\n    - md plist \n    \n**returns** an array of objects:\n\n```coffeescript\n[\n    ext:    string              \n    chars:  number              \n    index:  number              \n    number: index+1 \n    chunks: [\n                match:  string  # without whitespace characters\n                clss:   string  # value of match\n                turd:   string  # following punctuation characters\n                start:  number  # character index of match in line\n                length: number  # length of match\n            ]\n...\n]\n```\n\nSee [kolor.map](https://github.com/monsterkodi/klor/blob/master/coffee/kolor.coffee) for a list of recognized chunk values.\n\n## 🌈 kolor\n\n**kolor** is a submodule which exports a bunch of functions for wrapping strings in 256 color ansi codes.\n\nIt's a merge of [colorette](https://github.com/jorgebucaran/colorette) and [ansi-256-colors](https://github.com/jbnicolai/ansi-256-colors)\n\n- [r g b c m y w][1..8] foreground colors \n- [R G B C M Y W][1..8] background colors\n    \n```coffeescript\nklor = require 'klor'\nklor.kolor.globalize() # hoist color functions into the global scope\nlog y8 'bright yellow' + R1 'on dark red'\n```\n\n[![npm package][npm-image]][npm-url] \n[![Build Status][travis-image]][travis-url] \n[![downloads][downloads-image]][downloads-url] \n\n[npm-image]:https://img.shields.io/npm/v/klor.svg\n[npm-url]:http://npmjs.org/package/klor\n[travis-image]:https://travis-ci.org/monsterkodi/klor.svg?branch=master\n[travis-url]:https://travis-ci.org/monsterkodi/klor\n[downloads-image]:https://img.shields.io/npm/dm/klor.svg\n[downloads-url]:https://www.npmtrends.com/klor\n","publish_time":1558904531965,"_cnpm_publish_time":1558904531965,"dist-tags":{"latest":"2.17.0"}}