Package Exports
- functionfoundry
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (functionfoundry) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 functionfoundryvar { AND, EQ, LEN, GT, LT, ISNUMBER, ISTEXT, ISEMAIL, ISEMPTY, LOWER, PROPER, TEXT, DATE} = require('functionfoundry')
// Print `true`
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('HAPPY'), 'happy'),
EQ(PROPER('HAPPY'), 'Happy'),
EQ(TEXT(4200.00, "$#,###.00"), '$4,200.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 |