Skip to content

Commit

Permalink
Add template-mate for just-pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-c committed Jan 2, 2023
1 parent 2113b4d commit a4641cf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2347,6 +2347,27 @@ const getRoot = partial(Math.pow, 64);
getRoot(1/2); // 8
```
### [just-pipe](https://www.npmjs.com/package/just-pipe)
[source](https://github.com/angus-c/just/tree/master/packages/function-pipe)
[`🍦 Try it`](https://anguscroll.com/just/just-pipe)
```shell
npm install just-pipe
```
```shell
yarn add just-pipe
```
Pass a value through a pipeline of functions
```js
import pipe from 'just-pipe
pipe(3, a => a+1, b => b*2) // 8
pipe('John Smith', a => a.split(' '), b => b.reverse(), c => c[0]) // 'Smith'
```
### [just-debounce-it](https://www.npmjs.com/package/just-debounce-it)
[source](https://github.com/angus-c/just/tree/master/packages/function-debounce)
Expand Down
2 changes: 2 additions & 0 deletions templates/global.template
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ Most utilities still work with any platform that supports ES5, but these are the

<!-- template-mate: { "type": "template", "template": "globalPackage", "variablesPath": "just-partial-it" } -->

<!-- template-mate: { "type": "template", "template": "globalPackage", "variablesPath": "just-pipe" } -->

<!-- template-mate: { "type": "template", "template": "globalPackage", "variablesPath": "just-debounce-it" } -->

<!-- template-mate: { "type": "template", "template": "globalPackage", "variablesPath": "just-memoize" } -->
Expand Down

0 comments on commit a4641cf

Please sign in to comment.