# transformify

> Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.

Latest version **0.1.2** (published 2014-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install transformify
pnpm add transformify
yarn add transformify
bun add transformify
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2014-01-21 |
| First published | 2013-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Thorsten Lorenz |
| Maintainers | thlorenz |
| Keywords | transform, stream, browserify, browserify-transform, catw, mutiny |

## Links

- npm: https://www.npmjs.com/package/transformify
- Repository: https://github.com/thlorenz/transformify
- Issues: https://github.com/thlorenz/transformify/issues
- npm.io page: https://npm.io/package/transformify

## Dependencies (1)

- [readable-stream](https://npm.io/package/readable-stream.md) ~1.1.9

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2014-01-21
- 0.1.1 — 2013-12-27
- 0.1.0 — 2013-12-16

## README

# transformify [![build status](https://secure.travis-ci.org/thlorenz/transformify.png)](http://travis-ci.org/thlorenz/transformify)

Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.

```js
var transformify = require('transformify');

function toUpper(s) {
  return s.toUpperCase();
}

require('fs').createReadStream(__filename)
  .pipe(transformify(toUpper)(/* file not used */))
  .pipe(process.stdout);
```

### Output

```
VAR TRANSFORMIFY = REQUIRE('TRANSFORMIFY')

FUNCTION TOUPPER(S) {
  RETURN S.TOUPPERCASE();
}

REQUIRE('FS').CREATEREADSTREAM(__FILENAME)
  .PIPE(TRANSFORMIFY(TOUPPER)(/* FILE NOT USED */))
  .PIPE(PROCESS.STDOUT);
```

## Installation

    npm install transformify

## API

### transformify(fn)
```
/**
 * Takes a synchronous function that transforms a string and returns a transform compatible with browserify, catw and mutiny.
 * 
 * @name transformify
 * @function
 * @param {Function(String):String} fn 
 * @return {Function(String):TransformStream} function that returns a transform stream
 */
```

## License

MIT

---
_Source: https://npm.io/package/transformify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
