{"_id":"octet","_rev":"30-ee47eb82bb1acbfb89de3eafa8f5f404","name":"octet","description":"1kb template engine for the browser and nodejs. Support helpers, partials and more. Used in AbsurdJS.","dist-tags":{"latest":"3.0.0"},"versions":{"0.0.1":{"name":"octet","version":"0.0.1","description":"Template engine in just 20 lines, for browser and node. Used in AbsurdJS.","main":"index.js","files":["example.js","template.octet","benchmark.js","test.js","README.md"],"author":{"name":"Krasimir Tsonev","email":"info@krasimirtsonev.com","url":"http://krasimirtsonev.com"},"keywords":["javascript","template","engine","abusrdjs","absurd"],"scripts":{"start":"node example.js","test":"node_modules/mocha/bin/mocha --require should --reporter spec test.js","bench":"node benchmark.js"},"devDependencies":{"mocha":"*","should":"*"},"license":"MIT","_id":"octet@0.0.1","_shasum":"0c19631b48e136cc188033dffb5ceba1706374b5","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"0c19631b48e136cc188033dffb5ceba1706374b5","tarball":"https://registry.npmjs.org/octet/-/octet-0.0.1.tgz","integrity":"sha512-cop2F0/vnGhv7dcZR+2bhnzezFskfwEJ9sL2VpBfiDxTuDF+Ypq0QUb8RozQ/idvMwVJ8D5XVmuR2UwFwPr2Lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHATCYvWGQuT/TxV0fcqTKfezDJZ+DA5pGOqB/ePNv6aAiAd7GzLu1TsW+Vn38ZkGsb/19t8mDujX2J8Bmzd6L0UHA=="}]},"directories":{}},"0.0.2":{"name":"octet","version":"0.0.2","description":"Template engine in just 20 lines, for browser and node. Used in AbsurdJS.","main":"index.js","files":["index.js","example.js","template.octet","benchmark.js","test.js","README.md"],"author":{"name":"Krasimir Tsonev","email":"info@krasimirtsonev.com","url":"http://krasimirtsonev.com"},"keywords":["javascript","template","engine","abusrdjs","absurd"],"repository":{"type":"git","url":"https://github.com/tunnckoCore/octet"},"scripts":{"start":"node example.js","test":"node_modules/mocha/bin/mocha --require should --reporter spec test.js","bench":"node benchmark.js"},"devDependencies":{"mocha":"*","should":"*"},"license":"MIT","bugs":{"url":"https://github.com/tunnckoCore/octet/issues"},"homepage":"https://github.com/tunnckoCore/octet","_id":"octet@0.0.2","_shasum":"ec01d4a004579491c0e3d566d9e203d1e43eb4c3","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"ec01d4a004579491c0e3d566d9e203d1e43eb4c3","tarball":"https://registry.npmjs.org/octet/-/octet-0.0.2.tgz","integrity":"sha512-B9oTnoaGiNNdC8wU5mi5i7NYyPMFvMFhQZpgSVl05gc69B3jTq2JMIcgbTN+eTlHboeG3WZf9vT/yvjw4QnrDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn+FScFSuq0SA5icyxZx+uDAT6W7DrdIMWi8buiZjgfgIgBqtWCsGZt4U7ODoFNelItsTMu7vCFJiKQgij3MMQjfo="}]},"directories":{}},"1.0.0":{"name":"octet","version":"1.0.0","description":"Javascript template engine in just 20 lines, for browser and node. Used in AbsurdJS by Krasimir Tsonev.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Make Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/tunnckoCore/octet.git"},"keywords":["javascript","template","engine","abusrdjs","absurd","micro","microjs"],"license":{"type":"MIT","url":"https://github.com/tunnckoCore/octet/blob/master/license.md"},"dependencies":{},"devDependencies":{"istanbul-harmony":"^0.3.1","mocha":"*","mocha-lcov-reporter":"^0.0.1"},"gitHead":"9c1655c4b54212da84cc80d7e4cd77e2b302bad4","bugs":{"url":"https://github.com/tunnckoCore/octet/issues"},"homepage":"https://github.com/tunnckoCore/octet","_id":"octet@1.0.0","_shasum":"153c80c43fc17c88bc5e78559579e7c2942c5a71","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.11.14","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"153c80c43fc17c88bc5e78559579e7c2942c5a71","tarball":"https://registry.npmjs.org/octet/-/octet-1.0.0.tgz","integrity":"sha512-AMtgB57Ctj21kipleqzrUTBYJeWRz96ZwNyoZp1YY41faXMSwecMslPGmgNW3Q8Q34ndQeS4ptZafofCOpIMyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFefkLjM+gykUdcAc+dHqVHHVfK+pNIz8QC9GMAFAY/yAiEA0VlbCOd7MXKkYpSsT4oirt83J5rFfHi4zWvfODxb6DY="}]},"directories":{}},"1.0.1":{"name":"octet","version":"1.0.1","description":"Javascript template engine in just 20 lines, for browser and node. Used in AbsurdJS by Krasimir Tsonev.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Make Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/tunnckoCore/octet.git"},"keywords":["javascript","template","engine","abusrdjs","absurd","micro","microjs"],"license":{"type":"MIT","url":"https://github.com/tunnckoCore/octet/blob/master/license.md"},"dependencies":{},"devDependencies":{"istanbul-harmony":"^0.3.1","mocha":"*","mocha-lcov-reporter":"^0.0.1"},"gitHead":"f30cb223dc65c194abc4120204ff90aa794237fa","bugs":{"url":"https://github.com/tunnckoCore/octet/issues"},"homepage":"https://github.com/tunnckoCore/octet","_id":"octet@1.0.1","_shasum":"fe55edb7855cdf4a877c52984d44ccbc15469031","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.11.14","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"fe55edb7855cdf4a877c52984d44ccbc15469031","tarball":"https://registry.npmjs.org/octet/-/octet-1.0.1.tgz","integrity":"sha512-dcew5KJVZmJr7Udzh1NYx9o/DR44gM7vgPB9MTjj1fUG4FMy/q15YTtGXFva4Wo+WVpJK3bmF/D5+FHwE94tqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbAOKq/7ngYjGJcP+V9wnn2tqTvHy9YUCvdGPA2aTajgIgZPQRz80IEMfB5saR8/BndT9YLVK+wMUb2cXq5IlUjxk="}]},"directories":{}},"2.0.0":{"name":"octet","version":"2.0.0","description":"1kb template engine for the browser and nodejs. Support helpers, partials and more.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/octet.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"build":"npm run bundle && npm run bundle-uglify && npm run standalone && npm run standalone-uglify","bundle":"browserify -do dist/octet.js index.js","bundle-uglify":"uglifyjs -m -c -o dist/octet.min.js dist/octet.js","standalone":"browserify -s octet -do dist/octet.standalone.js index.js","standalone-uglify":"uglifyjs -m -c -o dist/octet.standalone.min.js dist/octet.standalone.js","test":"standard && node test.js"},"dependencies":{},"devDependencies":{"assertit":"^0.1.0","browserify":"^11.0.1","template-helpers":"^0.3.2","uglify-js":"^2.4.24","utils":"^0.2.2"},"keywords":["absurd","abusrdjs","browser","browserify","cdn","engine","ie","javascript","js","jsdelivr","micro","microjs","node","nodejs","template","tpl"],"standard":{"ignore":["dist/**"]},"gitHead":"f256e4c7c8a038d0b9ecee6e76bc14c9e92af019","bugs":{"url":"https://github.com/tunnckocore/octet/issues"},"homepage":"https://github.com/tunnckocore/octet#readme","_id":"octet@2.0.0","_shasum":"4d8bfe87bdf1b8dead42d2db9e94b5da261eccc9","_from":".","_npmVersion":"3.1.3","_nodeVersion":"2.4.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"4d8bfe87bdf1b8dead42d2db9e94b5da261eccc9","tarball":"https://registry.npmjs.org/octet/-/octet-2.0.0.tgz","integrity":"sha512-sJOZk/XY47FBk1OLYGS/Eg0oCzhoF9CSpLgAfxmRTg2ZzajVXBDvg73vCgZWgQVN4k5hf1BIFlr8I779tPZZnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxLLvvHjxMpNM5gVIHOYk5aFTAqXeDz3M2vINPdCcCTAiBAqkjJGGovoNoMuo+yuJApzTjc1hy60dJZuM7WmUCI/Q=="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"3.0.0":{"name":"octet","version":"3.0.0","description":"1kb template engine for the browser and nodejs. Support helpers, partials and more. Used in AbsurdJS.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/octet.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"build":"npm run build-bundle && npm run build-standalone","build-bundle":"npm run bundle && npm run bundle-uglify","build-standalone":"npm run standalone && npm run standalone-uglify","bundle":"browserify -do dist/octet.js index.js","bundle-uglify":"uglifyjs -m -c -o dist/octet.min.js dist/octet.js","standalone":"browserify -s octet -do dist/octet.standalone.js index.js","standalone-uglify":"uglifyjs -m -c -o dist/octet.standalone.min.js dist/octet.standalone.js","test":"standard && node test.js"},"dependencies":{"extend-shallow":"^2.0.1"},"devDependencies":{"assertit":"^0.1.0","utils":"^0.2.2"},"files":["index.js"],"keywords":["absurd","abusrdjs","browser","browserify","cdn","engine","ie","javascript","js","jsdelivr","micro","microjs","node","nodejs","template","tpl"],"standard":{"ignore":["dist/**"]},"gitHead":"6e4d402eedcea5043bcdc8c9a851946a7274df00","bugs":{"url":"https://github.com/tunnckocore/octet/issues"},"homepage":"https://github.com/tunnckocore/octet#readme","_id":"octet@3.0.0","_shasum":"4c0792cd52b995c858c8ff7e4c83fef966f0729f","_from":".","_npmVersion":"3.3.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"4c0792cd52b995c858c8ff7e4c83fef966f0729f","tarball":"https://registry.npmjs.org/octet/-/octet-3.0.0.tgz","integrity":"sha512-b6lSdSexdiLgZoQXIL0GWXPGz93ttAPN5m3jWbCF1XF/kM6AYdfQLXWvzNaC3k5AQZEJ6Q3mEvPA7rYqZCSyow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLoyY4y2KxDYqWoJQ5Ki0qxszncm7WhZURGaYw2k2I3AiEAhKQ7iVegMMcGYmTDU9EWDY/PuymqftIDmpU0a+HCyl0="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}}},"readme":"# [octet][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] \n\n> 1kb template engine for the browser and nodejs. Support helpers, partials and more.  \nUsed in [AbsurdJS Apps](http://absurdjs.com/).\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n\n## Install\n```\nnpm i octet --save\n```\n\n\n## Features\n- minimal, yet simple\n  + 845 bytes - browserified, gzipped and minified\n  + 1676 bytes - browserified and minified\n- zero dependencies\n- works on every browser, should **even works on IE6 or at least IE8**\n- works on the server with just `require('octet')`\n- plays well with [Browserify](https://browserify.org) and [BrowserifyCDN](https://brcdn.org)\n- support helpers and partials\n- available on CDNs - [BrowserifyCDN](https://www.brcdn.org/?module=octet&version=list) and [RawGit CDN](https://rawgit.com/)\n\n\n## Use it\n- [dist/octet.min.js](./dist/octet.min.js) (*1.6kb*)\n- [dist/octet.standalone.min.js](./dist/octet.standalone.min.js) (*1.9kb*)\n- [octet on BrowserifyCDN](https://www.brcdn.org/?module=octet&version=list)\n- [octet on RawGit CDN](https://cdn.rawgit.com/tunnckoCore/octet/master/dist/octet.standalone.min.js)\n\n\n## Usage\n> For more use-cases see the [tests](./test.js).  \nYou can use any \"helpers\" lib, for example [utils](https://github.com/jonschlinkert/utils).\n\n```js\nvar octet = require('octet')\nvar utils = require('utils')\n\noctet.render('foo <%this.uppercase(\"bar\")%> baz', utils._)\n//=> 'foo BAR baz'\n```\n\n### [octet](./index#L12)\n> Acts like `.render` by default. Renders given `str` with `locals`.\n\n- `str` **{String}** template to populate with `locals`\n- `locals` **{Object}** locals object\n- `returns` **{String}** rendered string\n\n**Example**\n\n```js\noctet('foo <%this.bar%> baz <%this.quux%>', {bar: 'bar', quux: 'QUUX'})\n//=> 'foo bar baz QUUX'\n```\n\n### [.render](./index#L16)\n> Renders given `str` with `locals`.\n\n- `str` **{String}** template to populate with `locals`\n- `locals` **{Object}** locals object\n- `returns` **{String}** rendered string\n\n**Example**\n\n```js\noctet.render('Hello <%this.place%> and <%this.user.name%>!', {\n  place: 'world',\n  user: {\n    name: 'Charlike'\n  }\n})\n//=> 'Hello world and Charlike!'\n```\n\n### [.compile](./index#L20)\n> Compiles given string and returns function which accepts `locals` object.\n\n- `str` **{String}** template to populate\n- `returns` **{Function}** which accepts `locals` objects\n\n**Example**\n\n```js\nvar fn = octet.compile('Hello <%this.place%> and <%this.user.name%>!')\nfn({place: 'world', user: {name: 'Charlike'}})\n//=> 'Hello world and Charlike!'\n```\n\n\n## Related\n- [j140](https://github.com/tunnckoCore/j140): Template engine in 140 bytes, by @jed Schmidt. Support helpers, partials and more.\n- [es6-template](https://github.com/tunnckoCore/es6-template): Easy and small template engine for the browser and nodejs.\n- [es6-template-regex](https://github.com/jonschlinkert/es6-template-regex): Regular expression for matching es6 template delimiters in a string.\n- [es6-template-strings](https://github.com/medikoo/es6-template-strings): Compile and resolve template strings notation as specified in ES6\n- [gulp-j140](https://github.com/tunnckoCore/gulp-j140): Gulp plugin for `j140` - template engine in 140 bytes by @jed Schmidt.\n- [gulp-octet](https://github.com/tunnckoCore/gulp-octet): Gulp plugin for `octet` - template engine in just 20 lines - used in AbsurdJS.\n- [gulp-es6-template](https://github.com/tunnckoCore/gulp-es6-template): Gulp plugin for `es6-template` - easy and small template engine.\n- [gulp-es6-template-strings](https://github.com/tunnckoCore/gulp-es6-template-strings): Gulp plugin for `es6-template-strings` package.\n- [jstransformer-es6-template](https://github.com/tunnckoCore/jstransformer-es6-template): es6-template support for JSTransformers\n- [jstransformer-es6-template-strings](https://github.com/jstransformers/jstransformer-es6-template-strings): es6-template-strings support for JSTransformers\n- [jstransformer-octet](https://github.com/jstransformers/jstransformer-octet): octet support for JSTransformers\n- [jstransformer-j140](https://github.com/tunnckoCore/jstransformer-j140): j140 support for JSTransformers\n\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/octet/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckocore.tk][author-www-img]][author-www-url] [![keybase tunnckocore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n\n[npmjs-url]: https://www.npmjs.com/package/octet\n[npmjs-img]: https://img.shields.io/npm/v/octet.svg?label=octet\n\n[license-url]: https://github.com/tunnckoCore/octet/blob/master/LICENSE.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/octet\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/octet.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/octet\n[travis-img]: https://img.shields.io/travis/tunnckoCore/octet.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/octet\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/octet.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/octet\n[david-img]: https://img.shields.io/david/tunnckoCore/octet.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg","maintainers":[{"email":"super.ludiq@gmail.com","name":"vanchoy"},{"email":"mameto2011@gmail.com","name":"tunnckocore"}],"time":{"modified":"2022-06-22T18:32:56.312Z","created":"2014-06-09T12:25:54.169Z","0.0.1":"2014-06-09T12:25:54.169Z","0.0.2":"2014-06-09T12:51:50.728Z","1.0.0":"2014-12-30T09:37:29.951Z","1.0.1":"2014-12-30T12:59:58.312Z","2.0.0":"2015-08-04T05:06:37.317Z","3.0.0":"2015-09-24T00:00:22.680Z"},"keywords":["absurd","abusrdjs","browser","browserify","cdn","engine","ie","javascript","js","jsdelivr","micro","microjs","node","nodejs","template","tpl"],"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/tunnckocore/octet#readme","repository":{"type":"git","url":"git+https://github.com/tunnckocore/octet.git"},"bugs":{"url":"https://github.com/tunnckocore/octet/issues"},"users":{"tunnckocore":true}}