Comparing version 0.1.16 to 1.0.0
1.0.0 / 2014-08-01 | ||
================== | ||
* remove address methods, please use `address` module | ||
0.1.16 / 2014-07-07 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -15,3 +15,2 @@ /*! | ||
var crypto = require('crypto'); | ||
var address = require('address'); | ||
@@ -382,29 +381,3 @@ /** | ||
var _showWarnning = false; | ||
/** | ||
* Get current machine IPv4 | ||
* | ||
* @param {String} [interfaceName] interface name, default is 'eth' on linux, 'en' on mac os. | ||
* @return {String} IP address | ||
*/ | ||
exports.getIP = exports.getIPv4 = function (interfaceName) { | ||
if (!_showWarnning) { | ||
_showWarnning = true; | ||
console.warn('[WARNNING] getIP() remove, PLEASE use `https://github.com/fengmk2/address` module instead'); | ||
} | ||
return address.ip(interfaceName); | ||
}; | ||
/** | ||
* Get current machine IPv6 | ||
* | ||
* @param {String} [interfaceName] interface name, default is 'eth' on linux, 'en' on mac os. | ||
* @return {String} IP address | ||
*/ | ||
exports.getIPv6 = function (interfaceName) { | ||
return address.ipv6(interfaceName); | ||
}; | ||
/** | ||
* Get a function parameter's names. | ||
@@ -411,0 +384,0 @@ * |
{ | ||
"name": "utility", | ||
"version": "0.1.16", | ||
"version": "1.0.0", | ||
"description": "A collection of useful utilities.", | ||
@@ -14,3 +14,2 @@ "main": "index.js", | ||
"dependencies": { | ||
"address": "~0.0.3" | ||
}, | ||
@@ -21,5 +20,4 @@ "devDependencies": { | ||
"benchmark": "*", | ||
"blanket": "*", | ||
"istanbul": "*", | ||
"contributors": "*", | ||
"coveralls": "*", | ||
"jshint": "*", | ||
@@ -31,3 +29,3 @@ "mm": "~0.2.1", | ||
"should": "~4.0.4", | ||
"travis-cov": "*" | ||
"cov": "*" | ||
}, | ||
@@ -44,3 +42,3 @@ "homepage": "https://github.com/node-modules/utility", | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
"node": ">= 0.10.0" | ||
}, | ||
@@ -47,0 +45,0 @@ "author": "fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)", |
utility | ||
======= | ||
[![Build Status](https://secure.travis-ci.org/node-modules/utility.png)](http://travis-ci.org/node-modules/utility) | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![Test coverage][coveralls-image]][coveralls-url] | ||
[![Gittip][gittip-image]][gittip-url] | ||
[![David deps][david-image]][david-url] | ||
[![Coverage Status](https://coveralls.io/repos/node-modules/utility/badge.png)](https://coveralls.io/r/node-modules/utility) | ||
[npm-image]: https://img.shields.io/npm/v/utility.svg?style=flat | ||
[npm-url]: https://npmjs.org/package/utility | ||
[travis-image]: https://img.shields.io/travis/node-modules/utility.svg?style=flat | ||
[travis-url]: https://travis-ci.org/node-modules/utility | ||
[coveralls-image]: https://img.shields.io/coveralls/node-modules/utility.svg?style=flat | ||
[coveralls-url]: https://coveralls.io/r/node-modules/utility?branch=master | ||
[gittip-image]: https://img.shields.io/gittip/fengmk2.svg?style=flat | ||
[gittip-url]: https://www.gittip.com/fengmk2/ | ||
[david-image]: https://img.shields.io/david/node-modules/utility.svg?style=flat | ||
[david-url]: https://david-dm.org/node-modules/utility | ||
[![NPM](https://nodei.co/npm/utility.png?downloads=true&stars=true)](https://nodei.co/npm/utility) | ||
![logo](https://raw.github.com/node-modules/utility/master/logo.png) | ||
@@ -17,3 +28,3 @@ | ||
```bash | ||
$ npm install utility | ||
$ npm install utility --save | ||
``` | ||
@@ -69,3 +80,3 @@ | ||
// get first ip | ||
[WARNNING] getIP() remove, PLEASE use `https://github.com/fengmk2/address` module instead | ||
[WARNNING] getIP() remove, PLEASE use `https://github.com/node-modules/address` module instead | ||
@@ -193,17 +204,2 @@ // get a function parameter's names | ||
## Authors | ||
```bash | ||
$ git summary | ||
project : utility | ||
repo age : 1 year, 2 months | ||
active : 24 days | ||
commits : 61 | ||
files : 17 | ||
authors : | ||
58 fengmk2 95.1% | ||
3 dead-horse 4.9% | ||
``` | ||
## License | ||
@@ -210,0 +206,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
12
0
36583
798
226
- Removedaddress@~0.0.3
- Removedaddress@0.0.3(transitive)