UNPKG
@chezearth/bagpipes
Version:
latest (0.1.3-2)
latest-fixed-dependencies (0.1.3)
0.1.3
0.1.3-2
0.1.3-1
Less code, more flow. Let's dance!
github.com/apigee-127/bagpipes
apigee-127/bagpipes
@chezearth/bagpipes
/
lib
/
fittings
/
jspath.js
15 lines
(10 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
;
var
debug =
require
(
'debug'
)(
'pipes'
);
var
JSPath
=
require
(
'jspath'
);
module
.
exports
=
function
create
(
) {
return
function
path
(
context, cb
) {
var
input = context.
input
;
var
output =
JSPath
.
apply
(input, context.
output
);
cb
(
null
, output); } };