{"_id":"jstransformer","_rev":"74043","name":"jstransformer","description":"Normalize the API of any jstransformer","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"calebeby","email":"caleb.eby01@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"npm:calebeby","email":""},{"name":"npm:forbeslindesay","email":""},{"name":"npm:hemanth","email":""},{"name":"npm:robloach","email":""},{"name":"npm:stoeffel","email":""},{"name":"npm:timothygu","email":""},{"name":"robloach","email":"robloach@gmail.com"},{"name":"stoeffel","email":"schtoeffel@gmail.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"time":{"modified":"2021-06-03T10:24:08.000Z","created":"2014-11-18T17:19:18.314Z","1.0.0":"2016-06-06T01:13:09.732Z","0.0.4":"2015-11-23T10:35:17.137Z","0.0.3":"2015-07-13T10:20:49.591Z","0.0.2":"2015-04-12T02:57:12.696Z","0.0.1":"2015-02-09T22:32:01.028Z","0.0.0":"2014-11-18T17:19:18.314Z"},"users":{"nelix":true,"eshinn":true,"danielbayley":true,"seangenabe":true,"robloach":true,"dduran1967":true,"zuojiang":true},"author":{"name":"ForbesLindesay"},"repository":{"type":"git","url":"git+https://github.com/jstransformers/jstransformer.git"},"versions":{"1.0.0":{"name":"jstransformer","version":"1.0.0","description":"Normalize the API of any jstransformer","keywords":["jstransformer"],"dependencies":{"is-promise":"^2.0.0","promise":"^7.0.1"},"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.4.0","testit":"^2.0.2"},"scripts":{"test":"node test","coverage":"istanbul cover test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/jstransformers/jstransformer.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"7cad069255989318fc5638228fd2fa54fe35992f","bugs":{"url":"https://github.com/jstransformers/jstransformer/issues"},"homepage":"https://github.com/jstransformers/jstransformer#readme","_id":"jstransformer@1.0.0","_shasum":"ed8bf0921e2f3f1ed4d5c1a44f68709ed24722c3","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"ed8bf0921e2f3f1ed4d5c1a44f68709ed24722c3","size":4799,"noattachment":false,"key":"/jstransformer/-/jstransformer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jstransformer/download/jstransformer-1.0.0.tgz"},"maintainers":[{"name":"calebeby","email":"caleb.eby01@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"npm:calebeby","email":""},{"name":"npm:forbeslindesay","email":""},{"name":"npm:hemanth","email":""},{"name":"npm:robloach","email":""},{"name":"npm:stoeffel","email":""},{"name":"npm:timothygu","email":""},{"name":"robloach","email":"robloach@gmail.com"},{"name":"stoeffel","email":"schtoeffel@gmail.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jstransformer-1.0.0.tgz_1465175586831_0.4917067172937095"},"directories":{},"publish_time":1465175589732,"_cnpm_publish_time":1465175589732,"_hasShrinkwrap":false},"0.0.4":{"name":"jstransformer","version":"0.0.4","description":"Normalize the API of any jstransformer","keywords":["jstransformer"],"dependencies":{"is-promise":"^2.0.0","promise":"^7.0.1"},"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.4.0","testit":"^2.0.2"},"scripts":{"test":"node test","coverage":"istanbul cover test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/jstransformers/jstransformer.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"67231174793c940ec18830ed92ffa0a2f3ef8950","bugs":{"url":"https://github.com/jstransformers/jstransformer/issues"},"homepage":"https://github.com/jstransformers/jstransformer#readme","_id":"jstransformer@0.0.4","_shasum":"8ec12cead9dfe0aae8c852c3aade653a8ccab1f9","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"robloach","email":"robloach@gmail.com"},"dist":{"shasum":"8ec12cead9dfe0aae8c852c3aade653a8ccab1f9","size":4732,"noattachment":false,"key":"/jstransformer/-/jstransformer-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/jstransformer/download/jstransformer-0.0.4.tgz"},"maintainers":[{"name":"calebeby","email":"caleb.eby01@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"npm:calebeby","email":""},{"name":"npm:forbeslindesay","email":""},{"name":"npm:hemanth","email":""},{"name":"npm:robloach","email":""},{"name":"npm:stoeffel","email":""},{"name":"npm:timothygu","email":""},{"name":"robloach","email":"robloach@gmail.com"},{"name":"stoeffel","email":"schtoeffel@gmail.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{},"publish_time":1448274917137,"_cnpm_publish_time":1448274917137,"_hasShrinkwrap":false},"0.0.3":{"name":"jstransformer","version":"0.0.3","description":"Normalize the API of any jstransformer","keywords":["jstransformer"],"dependencies":{"is-promise":"^2.0.0","promise":"^7.0.1"},"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","testit":"^2.0.2"},"scripts":{"test":"node test","coverage":"istanbul cover test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls"},"files":["index.js","LICENSE"],"repository":{"type":"git","url":"git+https://github.com/jstransformers/jstransformer.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"57198ce3483f51ee092895c243cb88162f843dcd","bugs":{"url":"https://github.com/jstransformers/jstransformer/issues"},"homepage":"https://github.com/jstransformers/jstransformer#readme","_id":"jstransformer@0.0.3","_shasum":"347495bd3fe1cfe8f03e2d71578acb9024826cf5","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"robloach","email":"robloach@gmail.com"},"dist":{"shasum":"347495bd3fe1cfe8f03e2d71578acb9024826cf5","size":4285,"noattachment":false,"key":"/jstransformer/-/jstransformer-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/jstransformer/download/jstransformer-0.0.3.tgz"},"maintainers":[{"name":"calebeby","email":"caleb.eby01@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"npm:calebeby","email":""},{"name":"npm:forbeslindesay","email":""},{"name":"npm:hemanth","email":""},{"name":"npm:robloach","email":""},{"name":"npm:stoeffel","email":""},{"name":"npm:timothygu","email":""},{"name":"robloach","email":"robloach@gmail.com"},{"name":"stoeffel","email":"schtoeffel@gmail.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{},"publish_time":1436782849591,"_cnpm_publish_time":1436782849591,"_hasShrinkwrap":false},"0.0.2":{"name":"jstransformer","version":"0.0.2","description":"Normalize the API of any jstransformer","keywords":["jstransformer"],"dependencies":{"is-promise":"^2.0.0","promise":"^6.0.1"},"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","testit":"^1.2.0"},"scripts":{"test":"node test","coverage":"istanbul cover test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls"},"files":["index.js","LICENSE"],"repository":{"type":"git","url":"https://github.com/jstransformers/jstransformer.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"99b40c1aa9fa984585aa50f4618d97a0287495c1","bugs":{"url":"https://github.com/jstransformers/jstransformer/issues"},"homepage":"https://github.com/jstransformers/jstransformer","_id":"jstransformer@0.0.2","_shasum":"7aae29a903d196cfa0973d885d3e47947ecd76ab","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"calebeby","email":"caleb.eby01@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"npm:calebeby","email":""},{"name":"npm:forbeslindesay","email":""},{"name":"npm:hemanth","email":""},{"name":"npm:robloach","email":""},{"name":"npm:stoeffel","email":""},{"name":"npm:timothygu","email":""},{"name":"robloach","email":"robloach@gmail.com"},{"name":"stoeffel","email":"schtoeffel@gmail.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"7aae29a903d196cfa0973d885d3e47947ecd76ab","size":4685,"noattachment":false,"key":"/jstransformer/-/jstransformer-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jstransformer/download/jstransformer-0.0.2.tgz"},"directories":{},"publish_time":1428807432696,"_cnpm_publish_time":1428807432696,"_hasShrinkwrap":false},"0.0.1":{"name":"jstransformer","version":"0.0.1","description":"Normalize the API of any jstransformer","keywords":["jstransformer"],"dependencies":{"promise":"^6.0.1"},"devDependencies":{"istanbul":"^0.3.5","testit":"^1.2.0"},"scripts":{"test":"node test","coverage":"istanbul cover test/index.js"},"repository":{"type":"git","url":"https://github.com/jstransformers/jstransformer.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"c9e437cba3e56def57887a7ca8adb73bbea7040c","bugs":{"url":"https://github.com/jstransformers/jstransformer/issues"},"homepage":"https://github.com/jstransformers/jstransformer","_id":"jstransformer@0.0.1","_shasum":"950c5878729a2624f3013fc252833300c4cd163a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"calebeby","email":"caleb.eby01@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"npm:calebeby","email":""},{"name":"npm:forbeslindesay","email":""},{"name":"npm:hemanth","email":""},{"name":"npm:robloach","email":""},{"name":"npm:stoeffel","email":""},{"name":"npm:timothygu","email":""},{"name":"robloach","email":"robloach@gmail.com"},{"name":"stoeffel","email":"schtoeffel@gmail.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"950c5878729a2624f3013fc252833300c4cd163a","size":5473,"noattachment":false,"key":"/jstransformer/-/jstransformer-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jstransformer/download/jstransformer-0.0.1.tgz"},"directories":{},"publish_time":1423521121028,"_cnpm_publish_time":1423521121028,"_hasShrinkwrap":false},"0.0.0":{"name":"jstransformer","version":"0.0.0","description":"Normalize the API of any jstransformer","keywords":[],"dependencies":{"promise":"^6.0.1"},"devDependencies":{},"scripts":{"test":"node test"},"repository":{"type":"git","url":"https://github.com/jstransformers/jstransformer.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"a6c22a5115c49c3fd85d828c9a73b53f0783f395","bugs":{"url":"https://github.com/jstransformers/jstransformer/issues"},"homepage":"https://github.com/jstransformers/jstransformer","_id":"jstransformer@0.0.0","_shasum":"81bf714ce8478c934ba89c4d87d83384ff1e074e","_from":".","_npmVersion":"1.5.0-alpha-4","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"calebeby","email":"caleb.eby01@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"npm:calebeby","email":""},{"name":"npm:forbeslindesay","email":""},{"name":"npm:hemanth","email":""},{"name":"npm:robloach","email":""},{"name":"npm:stoeffel","email":""},{"name":"npm:timothygu","email":""},{"name":"robloach","email":"robloach@gmail.com"},{"name":"stoeffel","email":"schtoeffel@gmail.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"81bf714ce8478c934ba89c4d87d83384ff1e074e","size":2701,"noattachment":false,"key":"/jstransformer/-/jstransformer-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jstransformer/download/jstransformer-0.0.0.tgz"},"directories":{},"publish_time":1416331158314,"_cnpm_publish_time":1416331158314,"_hasShrinkwrap":false}},"readme":"<p align=\"center\"><img src=\"https://cdn.rawgit.com/jstransformers/jstransformer/2bb6dc6c410e8683a17a4af5f1b73bcbee95aada/logo.svg\" width=\"300px\" height=\"299px\" /></p>\n<h1 align=\"center\">JSTransformer</h1>\n<p align=\"center\">Normalize the API of any jstransformer</p>\n\n<p align=\"center\"><a href=\"https://travis-ci.org/jstransformers/jstransformer\"><img src=\"https://img.shields.io/travis/jstransformers/jstransformer/master.svg\" alt=\"Build Status\"></a>\n<a href=\"https://david-dm.org/jstransformers/jstransformer\"><img src=\"https://img.shields.io/david/jstransformers/jstransformer.svg\" alt=\"Dependency Status\"></a>\n<a href=\"https://david-dm.org/jstransformers/jstransformer#info=devDependencies\"><img src=\"https://img.shields.io/david/dev/jstransformers/jstransformer.svg\" alt=\"Developers' Dependency Status\"></a>\n<a href=\"https://coveralls.io/r/jstransformers/jstransformer?branch=master\"><img src=\"https://img.shields.io/coveralls/jstransformers/jstransformer/master.svg\" alt=\"Coverage Status\"></a>\n<a href=\"https://www.npmjs.org/package/jstransformer\"><img src=\"https://img.shields.io/npm/v/jstransformer.svg\" alt=\"NPM version\"></a></p>\n\n## Installation\n\n    npm install jstransformer\n\n## Usage\n\n```js\nvar transformer = require('jstransformer');\nvar marked = transformer(require('jstransformer-marked'));\n\nvar options = {};\nvar res = marked.render('Some **markdown**', options);\n// => {body: 'Some <strong>markdown</strong>', dependencies: []}\n```\n\nThis gives the same API regardless of the jstransformer passed in.\n\n## API\n\nA transformer, once normalised using this module, will implement the following methods.  Note that if the underlying transformer cannot be used to implement the functionality, it may ultimately just throw an error.\n\n### Returned object from `.render*`\n\n```js\n{body: String, dependencies: Array.<String>}\n```\n\n - `body` represents the result as a string\n - `dependencies` is an array of files that were read in as part of the render process (or an empty array if there were no dependencies)\n\n### `.render`\n\n```js\ntransformer.render(str, options, locals);\n=> {body: String, dependencies: Array.<String>}\n```\n\n_requires the underlying transform to implement `.render` or `.compile`_\n\nTransform a string and return an object.\n\n### `.renderAsync`\n\n```js\ntransformer.renderAsync(str[, options], locals, callback);\n```\n\n```js\ntransformer.renderAsync(str[, options], locals);\n=> Promise({body: String, dependencies: Array.<String>})\n```\n\n_requires the underlying transform to implement `.renderAsync` or `.render`_\n\nTransform a string asynchronously. If a callback is provided, it is called as `callback(err, data)`, otherwise a Promise is returned.\n\n### `.renderFile`\n\n```js\ntransformer.renderFile(filename, options, locals)\n=> {body: String, dependencies: Array.<String>}\n```\n\n_requires the underlying transform to implement `.renderFile`, `.render`, `.compileFile`, or `.compile`_\n\nTransform a file and return an object.\n\n### `.renderFileAsync`\n\n```js\ntransformer.renderFileAsync(filename[, options], locals, callback);\n```\n\n```js\ntransformer.renderFileAsync(filename[, options], locals);\n=> Promise({body: String, dependencies: Array.<String>})\n```\n\n_requires the underlying transform to implement `.renderFileAsync`, `.renderFile`, `.renderAsync`, `.render`, `.compileFileAsync`, `.compileFile`, `.compileAsync`, or `.compileFile`_\n\nTransform a file asynchronously. If a callback is provided, it is called as `callback(err, data)`, otherwise a Promise is returned.\n\n### `.inputFormats`\n\n```js\nvar formats = transformer.inputFormats;\n=> ['md', 'markdown']\n```\n\nReturns an array of strings representing potential input formats for the transform. If not provided directly by the transform, results in an array containing the name of the transform.\n\n### `.outputFormat`\n\n```js\nvar md = require('jstransformer')(require('jstransformer-markdown'))\nvar outputFormat = md.outputFormat\n=> 'html'\n```\n\nReturns a string representing the default output format the transform would be expected to return when calling `.render()`.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/jstransformers/jstransformer#readme","bugs":{"url":"https://github.com/jstransformers/jstransformer/issues"},"license":"MIT"}