{"_id":"tfunk","_rev":"331135","name":"tfunk","description":"Multi-colour console output from chalk with added awesome","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"time":{"modified":"2021-06-07T02:46:33.000Z","created":"2014-07-13T22:05:49.943Z","4.0.0":"2020-10-17T18:58:41.725Z","3.1.0":"2016-12-22T22:03:28.380Z","3.0.2":"2016-03-22T20:15:21.369Z","3.0.1":"2015-02-01T15:49:21.000Z","3.0.0":"2014-11-23T23:25:40.421Z","2.1.0":"2014-10-08T12:18:03.202Z","2.0.2":"2014-09-16T07:06:52.447Z","2.0.1":"2014-09-12T06:41:55.079Z","2.0.0":"2014-09-11T17:04:38.097Z","1.0.0":"2014-09-10T21:22:16.180Z","0.0.2":"2014-07-13T22:11:01.912Z","0.0.1":"2014-07-13T22:05:49.943Z"},"users":{"fredev":true,"insomniaqc":true},"author":{"name":"Shane Osbourne"},"repository":{"type":"git","url":"git+https://github.com/shakyShane/tfunk.git"},"versions":{"4.0.0":{"name":"tfunk","version":"4.0.0","description":"Multi-colour console output from chalk with added awesome","repository":{"type":"git","url":"git+https://github.com/shakyShane/tfunk.git"},"keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"scripts":{"lint":"jshint test/*.js index.js","test":"npm run lint && mocha"},"author":{"name":"Shane Osbourne"},"license":"MIT","dependencies":{"chalk":"^1.1.3","dlv":"^1.1.3"},"devDependencies":{"chai":"^1.10.0","jshint":"^2.6.0","mocha":"^8.2.0","pegjs":"^0.8.0"},"gitHead":"bbb3dcd7c20436c88a139a4f93a79c4d214e8be5","bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk#readme","_id":"tfunk@4.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"shasum":"de9399feaf2060901d590b7faad80fcd5443077e","size":6616,"noattachment":false,"key":"/tfunk/-/tfunk-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-4.0.0.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tfunk_4.0.0_1602961121591_0.43355603041719104"},"_hasShrinkwrap":false,"publish_time":1602961121725,"_cnpm_publish_time":1602961121725},"3.1.0":{"name":"tfunk","version":"3.1.0","description":"Multi-colour console output from chalk with added awesome","repository":{"type":"git","url":"git+https://github.com/shakyshane/tfunk.git"},"keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"files":["index.js","lib"],"scripts":{"lint":"jshint test/*.js index.js","test":"npm run lint && mocha"},"author":{"name":"Shane Osbourne"},"license":"MIT","dependencies":{"chalk":"^1.1.1","object-path":"^0.9.0"},"devDependencies":{"chai":"^1.10.0","jshint":"^2.6.0","mocha":"^2.1.0","pegjs":"^0.8.0"},"gitHead":"b6085e7e636f49552f451cd87535730399435a22","bugs":{"url":"https://github.com/shakyshane/tfunk/issues"},"homepage":"https://github.com/shakyshane/tfunk#readme","_id":"tfunk@3.1.0","_shasum":"38e4414fc64977d87afdaa72facb6d29f82f7b5b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"38e4414fc64977d87afdaa72facb6d29f82f7b5b","size":6606,"noattachment":false,"key":"/tfunk/-/tfunk-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-3.1.0.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tfunk-3.1.0.tgz_1482444206597_0.03343049390241504"},"directories":{},"publish_time":1482444208380,"_cnpm_publish_time":1482444208380,"_hasShrinkwrap":false},"3.0.2":{"name":"tfunk","version":"3.0.2","description":"Multi-colour console output from chalk with added awesome","repository":{"type":"git","url":"git+https://github.com/shakyshane/tfunk.git"},"keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"files":["index.js","lib"],"scripts":{"lint":"jshint test/*.js index.js","test":"npm run lint && mocha"},"author":{"name":"Shane Osbourne"},"license":"MIT","dependencies":{"chalk":"^1.1.1","object-path":"^0.9.0"},"devDependencies":{"chai":"^1.10.0","jshint":"^2.6.0","mocha":"^2.1.0","pegjs":"^0.8.0"},"gitHead":"582443c2432e089a2d6a134ad4f0bcb63750e905","bugs":{"url":"https://github.com/shakyshane/tfunk/issues"},"homepage":"https://github.com/shakyshane/tfunk#readme","_id":"tfunk@3.0.2","_shasum":"327ebc6176af2680c6cd0d6d22297c79d7f96efd","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"327ebc6176af2680c6cd0d6d22297c79d7f96efd","size":6554,"noattachment":false,"key":"/tfunk/-/tfunk-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-3.0.2.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tfunk-3.0.2.tgz_1458677718909_0.6966664176434278"},"directories":{},"publish_time":1458677721369,"_cnpm_publish_time":1458677721369,"_hasShrinkwrap":false},"3.0.1":{"name":"tfunk","version":"3.0.1","description":"Multi-colour console output from chalk with added awesome","repository":{"type":"git","url":"https://github.com/shakyShane/tfunk"},"keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"files":["index.js","lib"],"scripts":{"lint":"jshint test/*.js index.js","test":"npm run lint && mocha"},"author":{"name":"Shane Osbourne"},"license":"MIT","dependencies":{"chalk":"^0.5.1","object-path":"^0.9.0"},"devDependencies":{"chai":"^1.10.0","jshint":"^2.6.0","mocha":"^2.1.0"},"gitHead":"04b98be28ea8239cca29b048d4c2909453e27b4c","bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk","_id":"tfunk@3.0.1","_shasum":"4472e2e8b957564fbf429c88904952eb29fe9178","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.26","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"4472e2e8b957564fbf429c88904952eb29fe9178","size":6542,"noattachment":false,"key":"/tfunk/-/tfunk-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-3.0.1.tgz"},"directories":{},"publish_time":1422805761000,"_cnpm_publish_time":1422805761000,"_hasShrinkwrap":false},"3.0.0":{"name":"tfunk","version":"3.0.0","description":"Multi-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.","main":"index.js","repository":{"type":"git","url":"https://github.com/shakyShane/tfunk"},"bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk","keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"scripts":{"test":"./node_modules/gulp/bin/gulp.js lint-ci && ./node_modules/mocha/bin/mocha test --recursive"},"author":{"name":"Shane Osbourne"},"license":"MIT","devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","gulp":"^3.8.6","gulp-jshint":"^1.7.1","jshint-stylish":"^0.4.0","pegjs":"^0.8.0","sinon":"^1.10.3","multiline":"^1.0.1"},"dependencies":{"chalk":"^0.5.1","object-path":"^0.6.0"},"gitHead":"5dd9ad113e533b38885564c88d9e6e4e3f8db0ad","_id":"tfunk@3.0.0","_shasum":"9875237b364e8bdf9240d177982ee77c4b905d09","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"9875237b364e8bdf9240d177982ee77c4b905d09","size":11907,"noattachment":false,"key":"/tfunk/-/tfunk-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-3.0.0.tgz"},"directories":{},"publish_time":1416785140421,"_cnpm_publish_time":1416785140421,"_hasShrinkwrap":false},"2.1.0":{"name":"tfunk","version":"2.1.0","description":"Multi-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.","main":"index.js","repository":{"type":"git","url":"https://github.com/shakyShane/tfunk"},"bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk","keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"scripts":{"test":"./node_modules/gulp/bin/gulp.js lint-ci && ./node_modules/mocha/bin/mocha test --recursive"},"author":{"name":"Shane Osbourne"},"license":"MIT","devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","gulp":"^3.8.6","gulp-jshint":"^1.7.1","jshint-stylish":"^0.4.0","pegjs":"^0.8.0","sinon":"^1.10.3","multiline":"^1.0.1"},"dependencies":{"chalk":"^0.5.1","object-path":"^0.6.0"},"_id":"tfunk@2.1.0","dist":{"shasum":"f0d4bc321634b6149b89d773c199ed0f437d8462","size":11511,"noattachment":false,"key":"/tfunk/-/tfunk-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-2.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"directories":{},"publish_time":1412770683202,"_cnpm_publish_time":1412770683202,"_hasShrinkwrap":false},"2.0.2":{"name":"tfunk","version":"2.0.2","description":"Multi-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.","main":"index.js","repository":{"type":"git","url":"https://github.com/shakyShane/tfunk"},"bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk","keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"scripts":{"test":"./node_modules/gulp/bin/gulp.js lint-ci && ./node_modules/mocha/bin/mocha test --recursive"},"author":{"name":"Shane Osbourne"},"license":"MIT","devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","gulp":"^3.8.6","gulp-jshint":"^1.7.1","jshint-stylish":"^0.4.0","pegjs":"^0.8.0","sinon":"^1.10.3"},"dependencies":{"chalk":"^0.5.1","object-path":"^0.6.0"},"_id":"tfunk@2.0.2","dist":{"shasum":"298e960a0ef20ed9c3955b9f1b0e583bf518dc43","size":11393,"noattachment":false,"key":"/tfunk/-/tfunk-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-2.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"directories":{},"publish_time":1410851212447,"_cnpm_publish_time":1410851212447,"_hasShrinkwrap":false},"2.0.1":{"name":"tfunk","version":"2.0.1","description":"Multi-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.","main":"index.js","repository":{"type":"git","url":"https://github.com/shakyShane/tfunk"},"bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk","keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"scripts":{"test":"./node_modules/gulp/bin/gulp.js lint-ci && ./node_modules/mocha/bin/mocha test --recursive"},"author":{"name":"Shane Osbourne"},"license":"MIT","devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","gulp":"^3.8.6","gulp-jshint":"^1.7.1","jshint-stylish":"^0.4.0","pegjs":"^0.8.0"},"dependencies":{"chalk":"^0.5.1","object-path":"^0.6.0"},"_id":"tfunk@2.0.1","dist":{"shasum":"91d63bd7aff2b895e98682b37b774331a1e24025","size":11034,"noattachment":false,"key":"/tfunk/-/tfunk-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-2.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"directories":{},"publish_time":1410504115079,"_cnpm_publish_time":1410504115079,"_hasShrinkwrap":false},"2.0.0":{"name":"tfunk","version":"2.0.0","description":"Multi-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.","main":"index.js","repository":{"type":"git","url":"https://github.com/shakyShane/tfunk"},"bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk","keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"scripts":{"test":"./node_modules/gulp/bin/gulp.js lint-ci && ./node_modules/mocha/bin/mocha test --recursive"},"author":{"name":"Shane Osbourne"},"license":"MIT","devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","gulp":"^3.8.6","gulp-jshint":"^1.7.1","jshint-stylish":"^0.4.0","pegjs":"^0.8.0"},"dependencies":{"chalk":"^0.5.1","object-path":"^0.6.0"},"_id":"tfunk@2.0.0","dist":{"shasum":"49dd3cd4bc25bdc4485b26312b3ab2d69d991978","size":10869,"noattachment":false,"key":"/tfunk/-/tfunk-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-2.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"directories":{},"publish_time":1410455078097,"_cnpm_publish_time":1410455078097,"_hasShrinkwrap":false},"1.0.0":{"name":"tfunk","version":"1.0.0","description":"Multi-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.","main":"index.js","repository":{"type":"git","url":"https://github.com/shakyShane/tfunk"},"bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk","keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"scripts":{"test":"./node_modules/gulp/bin/gulp.js lint-ci && ./node_modules/mocha/bin/mocha test --recursive"},"author":{"name":"Shane Osbourne"},"license":"MIT","devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","gulp":"^3.8.6","gulp-jshint":"^1.7.1","jshint-stylish":"^0.4.0","pegjs":"^0.8.0"},"dependencies":{"chalk":"^0.5.1","object-path":"^0.6.0"},"_id":"tfunk@1.0.0","dist":{"shasum":"fb497057d66806867009a17aceb7f1fc932d5986","size":10854,"noattachment":false,"key":"/tfunk/-/tfunk-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"directories":{},"publish_time":1410384136180,"_cnpm_publish_time":1410384136180,"_hasShrinkwrap":false},"0.0.2":{"name":"tfunk","version":"0.0.2","description":"Multi-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.","main":"index.js","repository":{"type":"git","url":"https://github.com/shakyShane/tfunk"},"bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"homepage":"https://github.com/shakyShane/tfunk","keywords":["color","colour","colors","terminal","console","cli","string","styles","formatting","rgb","shell","xterm","log","logging","command-line","text"],"scripts":{"test":"./node_modules/gulp/bin/gulp.js lint-ci && ./node_modules/mocha/bin/mocha test --recursive"},"author":{"name":"Shane Osbourne"},"license":"MIT","devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","gulp":"^3.8.6","gulp-jshint":"^1.7.1","jshint-stylish":"^0.4.0"},"dependencies":{"chalk":"^0.5.1"},"_id":"tfunk@0.0.2","dist":{"shasum":"33b205a01cf9ca8ae231b00791523cb708720006","size":5276,"noattachment":false,"key":"/tfunk/-/tfunk-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"directories":{},"publish_time":1405289461912,"_cnpm_publish_time":1405289461912,"_hasShrinkwrap":false},"0.0.1":{"name":"tfunk","version":"0.0.1","description":"Multi-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.","main":"index.js","scripts":{"test":"./node_modules/gulp/bin/gulp.js lint-ci && ./node_modules/mocha/bin/mocha test --recursive"},"author":"","license":"ISC","devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","gulp":"^3.8.6","gulp-jshint":"^1.7.1","jshint-stylish":"^0.4.0"},"dependencies":{"chalk":"^0.5.1"},"_id":"tfunk@0.0.1","dist":{"shasum":"1b241834ffa92c1026aa7d7e9b9d831dd00a2daf","size":5123,"noattachment":false,"key":"/tfunk/-/tfunk-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tfunk/download/tfunk-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"directories":{},"publish_time":1405289149943,"_cnpm_publish_time":1405289149943,"_hasShrinkwrap":false}},"readme":"##tfunk [![Build Status](https://travis-ci.org/shakyShane/tfunk.svg)](https://travis-ci.org/shakyShane/tfunk)\n\nMulti-colour console output from [Chalk](https://github.com/sindresorhus/chalk#styles) with added awesome.\n\nby [@shakyshane](https://github.com/shakyShane) & [@AydinHassan](https://github.com/AydinHassan)\n\n![tfunk](http://f.cl.ly/items/15102k441h1U1Z1l253J/Screen%20Shot%202014-09-10%20at%2022.05.15.png)\n\n##Install\n\n```bash\nnpm install tfunk\n```\n\n##Usage\n\n**Syntax rules:**\n\n`{` `<color>` `:` `YOUR STRING` `}`\n\n**Example**\n\n`{blue:This is a blue line}`\n\n**`}` is optional**\n\n`{blue:This is a blue line` <- Perfectly valid \n\n\n##Usage\n```js\nvar tFunk = require(\"tfunk\");\n\nconsole.log( tfunk(\"{cyan:tFunk terminal colours\") )\n\n// => tFunk terminal colours\n```\n\nOr get a custom compiler with a set prefix:\n\n```js\nvar compiler = require(\"tfunk\").Compiler({\n    prefix: \"[{magenta:tFunk}]\"\n});\n\nconsole.log( compiler.compile(\"tFunk is awesome\") );\nconsole.log( compiler.compile(\"don't you think?\") );\n\n// => [tFunk] tFunk is awesome\n// => [tFunk] don't you think?\n```\n\n**Define your own syntax**\n\nYou can define your own methods, they receive the string section as the first parameter & have access to the compiler\nthrough `this.compile()` keyword.\n\n```js\nvar compiler = require(\"tfunk\").Compiler({\n    \"warn\": function(string) {\n        return this.compile(\"{red:WARNING:\" + string);\n    }\n});\n```\n\nNow you can use `warn` anywhere you like.\n\n```js\nconsole.log( compiler.compile(\"{warn: Could not file your config file...\") );\n\n// => WARNING: Could not file your config file...\n```\n\n##Examples\n\nHere are some comparisons to chalk, to help you understand how to use tFunk.\n\n###Single Colours\n\n```js\n// chalk\nconsole.log( chalk.red(\"This has a single colour\") );\n\n// tFunk\nconsole.log( tFunk(\"{red:This has a single colour\") );\n```\n\n###Single Colour mid string\n\n```js\n// chalk\nconsole.log( \"This has a single colour \" + chalk.cyan(\"that begins mid-string\") );\n\n// tFunck\nconsole.log( tFunk(\"This has a single colour {cyan:that begins mid-string\") );\n```\n\n###Single Colour with end point\n\n```js\n// chalk\nconsole.log( chalk.red(\"This has a single colour with \") + \"an endpoint\");\n\n// tFunk\nconsole.log( tFunk(\"{red:This has a single colour with }an endpoint\") );\n```\n\n###Two Colours\n\n```js\n// chalk\nconsole.log( chalk.green(\"This has \") + chalk.cyan(\"two colours\") );\n\n// tFunk\nconsole.log( tFunk(\"{green:This has {cyan:two colours\") );\n```\n\n###Nested Colours\n\n```js\n// chalk\nconsole.log( chalk.green(\"This has a colour \" + chalk.cyan(\"nested inside\") + \" another colour\") );\n\n//tFunk\nconsole.log( tFunk(\"{green:This has a colour {cyan:nested inside} another colour\") );\n```\n\n###Multiple Nested\n\n```js\n// chalk\nconsole.log( chalk.blue(\"Multiple \" + chalk.cyan(\"NESTED\") + \" styles in \" + chalk.red(\"the same string\") + \" with an ending\") );\n\n// tFunk\nconsole.log( tFunk(\"{blue:Multiple {cyan:NESTED} styles in {red:the same string} with an ending\") );\n```\n\n###Multi line\n```js\nvar multiline = require(\"multiline\");\n\nvar string = multiline(function () {/*\n{cyan:This is a multi-line coloured string\nWith a single {yellow:yellow} word in the center of a line\nPretty cool huh?\n*/});\n\nconsole.log( tFunk(string) );\n```\n\n###Escaping when you need curly braces\n```js\nconsole.log( tFunk(\"This has a \\\\{\\\\{mustache\\\\}\\\\}\") );\n```\n\n\n##TODO\n- [x] Colours\n- [x] Nested Colours\n- [x] Custom syntax\n- [x] Prefixed compiler\n- [x] Make the chain-able API work like this `\"{white.bgRed: White text, red BG\"`\n- [x] Offer a way of escaping. Right now, ALL instances of `}` will be lost\n","_attachments":{},"homepage":"https://github.com/shakyShane/tfunk#readme","bugs":{"url":"https://github.com/shakyShane/tfunk/issues"},"license":"MIT"}