{"name":"klor","version":"0.25.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/blocks.coffee -- konrad -t"},"dependencies":{"kxk":"^0.290.0","pretty-time":"^1.1.0"},"devDependencies":{"assert":"^2.0.0","chai":"^4.2.0","koffee":"^0.45.0","mocha":"^6.1.4"},"gitHead":"bc55b5f8de1d713a21b4563cd85252b77c15e5b2","homepage":"https://github.com/monsterkodi/klor#readme","_id":"klor@0.25.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-/FJGPp+cJtWsH7Ny6Wkx0wm+0G631uqDLSKvFmAsNBgj1SgA8XC9I4i64qHrCXIM4o7riC/HcCDkY0oWcumJtw==","shasum":"ac5ee5fd7bb236b12dab97b768b25f90d8bc1730","tarball":"http://registry-npm.ywwl.com/klor/download/klor-0.25.0.tgz","fileCount":16,"unpackedSize":580646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6RQNCRA9TVsSAnZWagAAY+YP/iXIEqPlupDfYPj006na\nFLIdoRzsF+UYSI/aotad3HyLQ6A92OvK7/9k2Sug2BkX8TDfJ9Enma50gE8D\nu9NEHkoGTl8UzbwB2Vjvwf0Mt7tvS3lnCpqhUs2k53og6IkO/lTAHqehULp0\nNqRzX0QthQ+Z4UzkJnwJuaBUPoCtYdsIAktkNnOo7ffG/qCyzE55Qp6wuKy3\nOyFoxf4X7cAOl68QFEGHNncKpy/WIqA8s8wtdDpAw3hIu48dR0G0AGXbq+Yv\nIhgnpxsiY9dHZQ0oxqTg+m/0Hx6vPOGU3+hBq2i3q8d1cJlIC8kQqaduq2Ap\nii2WJc00nj8GiSbyjWOmsEYD+eGTtw7TMfrMVNpNNf8xbvU5FbUUFdfDi83g\ncZZikX6Ed3XyVBYcB4C9iMYPIemapV72St3x8dplhv94cgermv3BBxdOdEHi\nc1hKY8ohCLeSp7+oSR11cK3jgz28iB051jHGGobHx0uAXW0Ubr2mU0ukkRxc\nNJD6llbIan7rjcJMNHedzvMja0AnAvK7YIV/SwX1Pr4Zrx+QGrTiY1sEJL3P\n7lhtHXVF730C6/pAgPsYVtTj1iU+7/2dnDrCd1lJrOWdG5rcTug1fyHH3+I4\nhKZeMocPq8D/SpvPxh5Jrtwfru0gO7i6mSnTtdEIplPWz/dC3SqA4FjJ+TRc\n3lLT\r\n=YU50\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsJTbWvv4+y+tMK2GLKm9NiSt7p4EUGdh9VBWbRnSEPQIgddBQyjqtrM04Jdf8TB/NA0Ln5CgIiXcowdwlw5fsqRs="}],"size":106221,"noattachment":false,"key":"/klor/-/klor-0.25.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.25.0_1558778892170_0.9897932002567935"},"_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":1558778892395,"_cnpm_publish_time":1558778892395,"dist-tags":{"latest":"2.17.0"}}