{"id":17403105,"url":"https://github.com/thlorenz/transformify","last_synced_at":"2025-04-30T06:45:12.305Z","repository":{"id":12568515,"uuid":"15238998","full_name":"thlorenz/transformify","owner":"thlorenz","description":"Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.","archived":false,"fork":false,"pushed_at":"2014-01-21T21:41:44.000Z","size":148,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-08T17:30:27.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thlorenz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-16T22:28:54.000Z","updated_at":"2016-07-14T21:08:28.000Z","dependencies_parsed_at":"2022-09-26T18:40:47.100Z","dependency_job_id":null,"html_url":"https://github.com/thlorenz/transformify","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Ftransformify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Ftransformify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Ftransformify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Ftransformify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thlorenz","download_url":"https://codeload.github.com/thlorenz/transformify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232905682,"owners_count":18594792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-16T18:53:30.752Z","updated_at":"2025-01-07T16:39:34.347Z","avatar_url":"https://github.com/thlorenz.png","language":"JavaScript","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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthlorenz%2Ftransformify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthlorenz%2Ftransformify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthlorenz%2Ftransformify/lists"}