Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zeelib

Package Overview
Dependencies
Maintainers
1
Versions
370
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeelib

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

  • 7.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
321
decreased by-43.68%
Maintainers
1
Weekly downloads
 
Created
Source

zeelib

IMPORTANT

All functional-style utils will be removed in an upcoming release. I strongly recommend migrating to Ramda (or Lodash, or even Underscore). zeelib will stick around as a library of Node and DOM utils.


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

  • Documentation
  • npm
  • Changes
  • Roadmap
  • Contributing
  • License (MIT)

npm version CircleCI codecov


Usage

zeelib is a collection of over 250 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')
    exit(1)
  }
}

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'
}

Keywords

FAQs

Package last updated on 08 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc