zeelib8.6.0 • Public • Published
A small lib of Node, string, and DOM utils.
zeelib is a collection of over 200 utility functions.
See the docs for details.
// require also works:const z =// named imports work:// or with require:const exit getArgs =// but i highly recommend importing individual functions:// or with require:const getArgs =const exit =if !moduleparentconst args =if !argslengthconsole
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'