{"_id":"komodo-scheme","_rev":"19-da9a2466d7511453e69162f956196711","name":"komodo-scheme","description":"A class for parsing Komodo Edit/IDE scheme files (*.ksf) into a workable format.","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"komodo-scheme","version":"0.1.0","description":"A class for parsing Komodo Edit/IDE scheme files (*.ksf) into a workable format.","homepage":"http://github.com/tstone/komodo-scheme-js","keywords":["komodo","scheme"],"author":{"name":"Titus","email":"titus@kolormodo.com","url":"http://twitter.com/andstuff"},"licenses":[{"type":"MIT","url":"http://github.com/tstone/komodo-scheme-js/blog/master/MIT.LICENSE"}],"repository":{"type":"git","url":"git://github.com/tstone/komodo-scheme-js.git","web":"http://github.com/tstone/komodo-scheme-js"},"main":"komodo-scheme","engines":["node >= 0.4"],"_npmJsonOpts":{"file":"/home/titus/.npm/komodo-scheme/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"komodo-scheme@0.1.0","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"cd366fd312618f4161b744578733c2a8b1a07d9e","tarball":"https://registry.npmjs.org/komodo-scheme/-/komodo-scheme-0.1.0.tgz","integrity":"sha512-LMyQOET23PlNffSlr0k3fQllIFMogVUdLcXUPGLzVLfwXL/7xkSACxonm8ryQm2iinQX9N5ScwsJASP3l4hNow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhjRa0CUHw/s9X//l5J2xh+gBUF21k7xM4iR/e3agNHwIhAJoTGCqT2nUS9s0oC/y1G1w7XeYvgSsh4gq1IV3M3r7Y"}]},"maintainers":[{"name":"wastingtape","email":"wastingtape@gmail.com"}]},"0.1.1":{"name":"komodo-scheme","version":"0.1.1","description":"A class for parsing Komodo Edit/IDE scheme files (*.ksf) into a workable format.","homepage":"http://github.com/tstone/komodo-scheme-js","keywords":["komodo","scheme"],"author":{"name":"Titus","email":"titus@kolormodo.com","url":"http://twitter.com/andstuff"},"licenses":[{"type":"MIT","url":"http://github.com/tstone/komodo-scheme-js/blog/master/MIT.LICENSE"}],"repository":{"type":"git","url":"git://github.com/tstone/komodo-scheme-js.git","web":"http://github.com/tstone/komodo-scheme-js"},"main":"komodo-scheme","engines":["node >= 0.4"],"_npmUser":{"name":"wastingtape","email":"wastingtape@gmail.com"},"_id":"komodo-scheme@0.1.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"21fb9a026738cc6f5cdd246c49acf2bdeac1dac9","tarball":"https://registry.npmjs.org/komodo-scheme/-/komodo-scheme-0.1.1.tgz","integrity":"sha512-hVWjwhm6SdTdvjOyfSQSLzNj0Xnc0bblSnKMmHvqcl/fjrNDPrr88I8NxvUMVbffSz8VUazrNt4BMv2rguY+nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzhbarv8RooRk3mnNBfgtXShubUPba71G08OMfFrCHCQIhALsTRpHemTLDpPKBUb+9qXN+Z+Z6M2ZVl8DUV/7+juTw"}]},"maintainers":[{"name":"wastingtape","email":"wastingtape@gmail.com"}]}},"maintainers":[{"name":"wastingtape","email":"wastingtape@gmail.com"}],"time":{"modified":"2022-06-19T09:43:57.748Z","created":"2011-08-27T20:01:22.136Z","0.1.0":"2011-08-27T20:01:23.765Z","0.1.1":"2012-02-04T21:38:59.293Z"},"author":{"name":"Titus","email":"titus@kolormodo.com","url":"http://twitter.com/andstuff"},"repository":{"type":"git","url":"git://github.com/tstone/komodo-scheme-js.git","web":"http://github.com/tstone/komodo-scheme-js"},"readme":"Parse Komodo Edit/IDE Scheme files in Node.js\n\nUsage\n------\n\n    var KomodoScheme = require('komodo-scheme').Parser;\n\n    var scheme = new KomodoScheme({ path: '/path/to/Scheme.ksf' });\n    console.log(scheme.toCSS());\n\n    // Outputs:\n    // .ksf-attribute-name { color: #781f87; }\n    // .ksf-bracebad { background-color: #3f3f3f; font-weight: bold; color: #9090c6 }\n    // ... etc ...\n\n    // Language-Specific CSS:\n    console.log(scheme.toCSS('hex', 'Django'));\n\n    // CSS color values as RGB:\n    console.log(scheme.toCSS('rgb'));\n\n    // Custom prefix before each selector:\n    console.log(scheme.toCSS('rgb', '', '#preview'));\n\n    // Or, individual scheme attributes can be accessed through a hash:\n    console.log(scheme.commonStyles.strings.fore);\n\nAlso included is a Color class which provides parsing of the BGR color into several formats\n\n    var Color = require('komodo-scheme').Color;\n    var c = new Color(scheme.commonStyles.strings.fore);\n\n    console.log(c.toRGB());\n    // outputs:  [144,144,198]\n\n    console.log(c.toHtmlRGB());\n    // outputs:  'rgb(144,144,198)'\n\n    console.log(c.toHtmlHex());\n    // outputs:  '#9090c6'\n\nRunning Tests\n------\n\n    $ bash test.sh\n","readmeFilename":""}