flex-hosts
hosts manager with DNS refresh
Last updated 4 years ago by limingv5 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install flex-hosts 
SYNC missed versions from official npm registry.

FlexHosts

Support Mac OS X, Windows, Linux

var flexHosts = require("flex-hosts");

flexHosts(hostsMap, [dir,] function (err, hosts) {
  ...
});

Arguments

hostsMap

{
  "127.0.0.1": [
    "g.cdn.cn",
    "a.cdn.cn"
  ],
  "127.0.0.2": "t.cdn.cn o.cdn.cn"
}
  • The value relevant to key could be Array or String.

[dir]

The DIR where puts the hostsMap file

Current Tags

  • 0.6.11                                ...           latest (4 years ago)

40 Versions

  • 0.6.11                                ...           4 years ago
  • 0.6.10                                ...           4 years ago
  • 0.6.9                                ...           4 years ago
  • 0.6.8                                ...           4 years ago
  • 0.6.7                                ...           4 years ago
  • 0.6.6                                ...           4 years ago
  • 0.6.5                                ...           5 years ago
  • 0.6.4                                ...           5 years ago
  • 0.6.3                                ...           5 years ago
  • 0.6.2                                ...           5 years ago
  • 0.6.1                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.3                                ...           5 years ago
  • 0.4.2                                ...           5 years ago
  • 0.4.1                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.7                                ...           5 years ago
  • 0.2.6                                ...           5 years ago
  • 0.2.5                                ...           6 years ago
  • 0.2.4                                ...           6 years ago
  • 0.2.3                                ...           6 years ago
  • 0.2.2                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.12                                ...           6 years ago
  • 0.0.11                                ...           6 years ago
  • 0.0.10                                ...           6 years ago
  • 0.0.9                                ...           6 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.7                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 13
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |