functionfoundry

FunctionFoundry is a JavaScript library with an interface similar to spreadsheet functions.
The code runs in Node.js and browsers. The library provides ~100 functions but it is small (~30kb minified).
For more information see the docs or read the annotated code.
quickstart
npm install --save functionfoundry
var { AND, EQ, LEN, GT, LT, ISNUMBER, ISTEXT, ISEMAIL, ISEMPTY, LOWER, TEXT, DATE} = require('functionfoundry')
console.log(
AND(
ISTEXT('This is'),
ISNUMBER(1),
ISEMAIL('me@gmail.com'),
ISEMPTY(''),
GT(2, 1),
LT(1, 2),
EQ(LEN('foo'), 3),
EQ(LOWER('FOO'), 'foo'),
EQ(TEXT(1420, "$#,###.00"), '$1,420.00'),
EQ(TEXT(DATE(2000, 2, 1), "m-d-yyyy"), '2-1-2000')
)
)
organization
name | purpose |
---|
docs | Annotated source code generated by docco |
src | Original source code written in ES6 |
test | Test code written for tape |