ipcarefully

1.0.9 • Public • Published

IP Carefully

Greenkeeper badge

Creates HTTP or HTTPS agents for node.js that can filter based on IP. Accepts whitelists or blacklists.

 
const Https = require(https);
const IPCarefully = require('ipcarefully');
const agent = IPCarefully.https({ type: 'blacklist', iplist: ['127.0.0.1'], agent: { maxSockets: 5 });
 
 
Https.request({host: 'localhost', agent }); //Socket will error out before connecting

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.9
    8
    • latest

Version History

Package Sidebar

Install

npm i ipcarefully

Weekly Downloads

8

Version

1.0.9

License

MIT

Unpacked Size

6.71 kB

Total Files

7

Last publish

Collaborators

  • gar