value-pipe

WebJar for value-pipe

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

value-pipe
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

value-pipe
WebJar for value-pipe
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/bendrucker/value-pipe

Download value-pipe

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/value-pipe/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>value-pipe</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/value-pipe/
implementation 'org.webjars.npm:value-pipe:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/value-pipe/
implementation ("org.webjars.npm:value-pipe:1.0.1")
'org.webjars.npm:value-pipe:jar:1.0.1'
<dependency org="org.webjars.npm" name="value-pipe" rev="1.0.1">
  <artifact name="value-pipe" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='value-pipe', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "value-pipe" % "1.0.1"
[org.webjars.npm/value-pipe "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

value-pipe Build Status Greenkeeper badge

Pipe a value through a list of synchronous transform functions

Install

$ npm install --save value-pipe

Usage

var pipe = require('value-pipe')

var mirrorAndUppercase = pipe(mirror, uppercase)
mirrorAndUppercase('git')
//=> GITTIG

function mirror (value) {
  return value + value.split('').reverse().join('')
}

function uppercase (value) {
  return value.toUpperCase()
}

API

pipe(functions...) -> function

functions

Required
Type: function / array[function]

A set of functions to use to transform the value. At least one is required. You can pass the functions as arguments or pass a single array of functions.

License

MIT © Ben Drucker

Versions

Version
1.0.1