Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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.
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'
}
FAQs
Util lib
The npm package zeelib receives a total of 250 weekly downloads. As such, zeelib popularity was classified as not popular.
We found that zeelib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.