node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



A small lib of FP, Node, and DOM utils.


import z from 'zeelib''')
if (z.isEven(process.argv[2])) // do things

You can also import individual functions (recommended).

import c from 'zeelib/lib/colorize'
console.log(c.bold('HELLO THERE')))

If you're using require with individual files you'll need to use default:

const c = require('zeelib/lib/colorize').default

If you get errors when using zeelib in a front-end build, you may need to use something like Webpack's node option. Try:

node: {
  fs: 'empty',
  net: 'empty',
  tls: 'empty',
  readline: 'empty',
  child_process: 'empty'

Or, just import the functions you need.