{"_id":"transformify","_rev":"330910","name":"transformify","description":"Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"time":{"modified":"2021-06-07T02:46:22.000Z","created":"2013-12-16T22:52:35.259Z","0.1.2":"2014-01-21T21:41:46.059Z","0.1.1":"2013-12-27T18:01:42.569Z","0.1.0":"2013-12-16T22:52:35.259Z"},"users":{},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"repository":{"type":"git","url":"git://github.com/thlorenz/transformify.git"},"versions":{"0.1.2":{"name":"transformify","version":"0.1.2","description":"Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi"},"repository":{"type":"git","url":"git://github.com/thlorenz/transformify.git"},"homepage":"https://github.com/thlorenz/transformify","dependencies":{"readable-stream":"~1.1.9"},"devDependencies":{"nave":"~0.4.3","tap":"~0.4.3","apply-transform":"~0.1.3"},"keywords":["transform","stream","browserify","browserify-transform","catw","mutiny"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/transformify/blob/master/LICENSE"},"engine":{"node":">=0.6"},"bugs":{"url":"https://github.com/thlorenz/transformify/issues"},"_id":"transformify@0.1.2","dist":{"shasum":"9a4f42a154433dd727b80575428a3c9e5489ebf1","size":2520,"noattachment":false,"key":"/transformify/-/transformify-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/transformify/download/transformify-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1390340506059,"_cnpm_publish_time":1390340506059,"_hasShrinkwrap":false},"0.1.1":{"name":"transformify","version":"0.1.1","description":"Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi"},"repository":{"type":"git","url":"git://github.com/thlorenz/transformify.git"},"homepage":"https://github.com/thlorenz/transformify","dependencies":{"readable-stream":"~1.1.9"},"devDependencies":{"nave":"~0.4.3","tap":"~0.4.3","apply-transform":"~0.1.3"},"keywords":["transform","stream","browserify","catw","mutiny"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/transformify/blob/master/LICENSE"},"engine":{"node":">=0.6"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/transformify/issues"},"_id":"transformify@0.1.1","dist":{"shasum":"c4995041d9b13ccdbb5b0ac7931fb569d9b4aff4","size":2508,"noattachment":false,"key":"/transformify/-/transformify-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/transformify/download/transformify-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1388167302569,"_cnpm_publish_time":1388167302569,"_hasShrinkwrap":false},"0.1.0":{"name":"transformify","version":"0.1.0","description":"Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi"},"repository":{"type":"git","url":"git://github.com/thlorenz/transformify.git"},"homepage":"https://github.com/thlorenz/transformify","dependencies":{"readable-stream":"~1.1.9"},"devDependencies":{"nave":"~0.4.3","tap":"~0.4.3","apply-transform":"~0.1.3"},"keywords":[],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/transformify/blob/master/LICENSE"},"engine":{"node":">=0.6"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/transformify/issues"},"_id":"transformify@0.1.0","dist":{"shasum":"7c09e34ef3f07c2a7e6cbc4c711c7cb57e52a6d8","size":2509,"noattachment":false,"key":"/transformify/-/transformify-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/transformify/download/transformify-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1387234355259,"_cnpm_publish_time":1387234355259,"_hasShrinkwrap":false}},"readme":"# transformify [![build status](https://secure.travis-ci.org/thlorenz/transformify.png)](http://travis-ci.org/thlorenz/transformify)\n\nTakes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.\n\n```js\nvar transformify = require('transformify');\n\nfunction toUpper(s) {\n  return s.toUpperCase();\n}\n\nrequire('fs').createReadStream(__filename)\n  .pipe(transformify(toUpper)(/* file not used */))\n  .pipe(process.stdout);\n```\n\n### Output\n\n```\nVAR TRANSFORMIFY = REQUIRE('TRANSFORMIFY')\n\nFUNCTION TOUPPER(S) {\n  RETURN S.TOUPPERCASE();\n}\n\nREQUIRE('FS').CREATEREADSTREAM(__FILENAME)\n  .PIPE(TRANSFORMIFY(TOUPPER)(/* FILE NOT USED */))\n  .PIPE(PROCESS.STDOUT);\n```\n\n## Installation\n\n    npm install transformify\n\n## API\n\n### transformify(fn)\n```\n/**\n * Takes a synchronous function that transforms a string and returns a transform compatible with browserify, catw and mutiny.\n * \n * @name transformify\n * @function\n * @param {Function(String):String} fn \n * @return {Function(String):TransformStream} function that returns a transform stream\n */\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/thlorenz/transformify","bugs":{"url":"https://github.com/thlorenz/transformify/issues"},"license":{"type":"MIT","url":"https://github.com/thlorenz/transformify/blob/master/LICENSE"}}