Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including zeelib with all npm packages installed. Try it out:

var zeelib = require("zeelib")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

zeelib v8.6.0

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


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

npm version CircleCI codecov


zeelib is a collection of over 200 utility functions. See the docs for details.

Example usage:

import z from 'zeelib'
// require also works:
const z = require('zeelib')

// named imports work:
import { exit, getArgs } from 'zeelib'
// or with require:
const { exit, getArgs } = require('zeelib')

// but i highly recommend importing individual functions:
import getArgs from 'zeelib/lib/get-args'
import exit from 'zeelib/lib/exit'
// or with require:
const getArgs = require('zeelib/lib/get-args')
const exit = require('zeelib/lib/exit')

if (!module.parent) {
  const args = getArgs()
  if (!args.length) {
    console.log('Usage: my-thing some-command')

If you're not importing just the functions you need (and you should be!), you may have problems with front-end builds. Try something like this (assuming a Webpack config):

node: {
  fs: 'empty',
  net: 'empty',
  tls: 'empty',
  readline: 'empty',
  child_process: 'empty'
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free