surpris.io
v1.0.16
Published
Install it globally because that's what you want, really:
Downloads
3
Readme
Install it globally because that's what you want, really:
npm install --g surpris.io
There are two functions, surprise and kulho. Kulho is google translated into germany and is like Either, sometimes.
Usage, kulho:
> const R = require('ramda')
undefined
> const S = require('surpris.io')
undefined
> const adder = S.kulho(R.map(i => i + 1))
undefined
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ [ 2, 3, 4 ],
'Es gibt nur eine Sache, die einen Traum unmöglich macht: die Angst vor dem Scheitern.' ]
Usage, surprise
> const S = require('surpris.io')
undefined
> const R = require('ramda')
undefined
> const adder = S.surprise(R.map(i => i + 1))
undefined
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
{ surprise: 'motherfucker!' }
Usage, both!
> const R = require('ramda')
undefined
> const S = require('surpris.io')
undefined
> const adder = S.kulho(S.surprise(R.map(i => i + 1)))
undefined
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
{ surprise: 'motherfucker!' }
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ 2, 3, 4 ]
> adder([1,2,3])
[ [ 2, 3, 4 ],
'Denken Sie daran, dass, wo immer Ihr Herz ist, dort finden Sie Ihren Schatz.' ]
Have fun!