https://github.com/hanford/pipe-fns
helper function enabling easy functional piping
https://github.com/hanford/pipe-fns
functional pipe pipeline
Last synced: 22 days ago
JSON representation
helper function enabling easy functional piping
- Host: GitHub
- URL: https://github.com/hanford/pipe-fns
- Owner: hanford
- Created: 2018-05-23T17:46:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T18:11:43.000Z (almost 7 years ago)
- Last Synced: 2025-03-18T11:57:40.026Z (about 1 month ago)
- Topics: functional, pipe, pipeline
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# pipe-fns
[![npm package][npm-badge]][npm]
Easily pipe functions, similar to the [proposal pipeline operator](https://github.com/tc39/proposal-pipeline-operator) but with a more familiar syntax
### Usage
```js
const pipe = require('pipe-fns')const capitalize = txt => txt.toUpperCase()
const exclame = txt => `${txt}!`pipe('pipe it up', capitalize, exclame) // PIPE IT UP!
```[npm-badge]: https://img.shields.io/npm/v/pipe-fns.png?style=flat-square
[npm]: https://www.npmjs.org/package/pipe-fns## License
MIT © [Jack Hanford](http://jackhanford.com)