npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

flail

v0.0.12

Published

If U R looking for a http proxy lib, [look here](http://npmjs.org/doji)

Downloads

22

Readme

Flail is a hosts manager

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.

What changed

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;

How to check is IP setted?

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
}

How to set a host

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);

When the bash exit with no reason

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~