Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
If U R looking for a http proxy lib, look here
Flail is a hosts manager build for nodejs server or worker
Also can be used like a util for look up is IP setted local.
remove the safeuse
. Don't watch the system file.
rename the use => load
##How to get this?
If U R using Mac
sudo npm install -g flail
If U R Windows_NT user
npm install -g flail
If U get some error like "Cannot find module 'flail'"
, see how to resolve the windows path;
If only check is IP setted at localhost, just
var flail = require('flail');
var hosts = flail.load();
var list = flail.get('10.21.225.13');
if (list['flail.com']) {
// YES flail.com has added
}
or
var flail = require('flail');
var hosts = flail.load();
var ret = flail.get('10.21.225.13', 'flail.com');
if (ret) {
// YES flail.com has added
}
Use flail.set
can set a host to local.
var flail = require('flail');
var ip = '127.0.0.1';
var address1 = 'a.com b.com c.com d.com';
var address2 = ['e.com','f.com'];
flail.set(ip, address1);
flail.set(ip, address2);
Flail support for backup with $user/.flail/hosts.bak for your hosts;
##How to use this?
if U use this only check localhost setting
var flail = require('flail');
var hosts = flail.load();
// load the hosts files
flail.get('localhost');
Take a test with demo
node test/test.js
##About me
I'm a Web-Developer, living in Hangzhou China.
##How to keep connect with me.
U can post an email or a issue at github
Thank you for install flail~
FAQs
If U R looking for a http proxy lib, [look here](http://npmjs.org/doji)
We found that flail demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.