https://github.com/willin/node-wno
Wonderful Number Converter for node.js and io.js
https://github.com/willin/node-wno
Last synced: 9 months ago
JSON representation
Wonderful Number Converter for node.js and io.js
- Host: GitHub
- URL: https://github.com/willin/node-wno
- Owner: willin
- License: mit
- Created: 2015-03-25T01:44:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-25T04:03:49.000Z (about 11 years ago)
- Last Synced: 2025-08-20T06:37:04.563Z (10 months ago)
- Language: JavaScript
- Homepage: https://npmjs.org/package/wno
- Size: 125 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WNO
[](https://npmjs.org/package/wno) [](https://travis-ci.org/willin/node-wno) [](https://npmjs.org/package/wno) [](https://coveralls.io/repos/willin/node-wno)
## Installation
```
npm install wno
```
## Functions
| Name | Desc |
|:-----------------:|:---------------------:|
|ipv42int | Convert IPV4 to INT |
|int2ipv4 | Convert Int to IPV4 |
|getTimestamp | Get Unix Timestamp |
## Usage
```js
var wno = require('wno');
console.log(wno.ipv42int('127.0.0.1'));
//2130706433
console.log(wno.int2ipv4(2130706433));
//'127.0.0.1'
console.log(wno.getTimestamp('2014-03-03 12:48:00'));
//1393822080
console.log(wno.getTimestamp());
//Now
```
## Contributors
```
project : wno
repo age : 2 hours
active : 1 days
commits : 3
files : 11
authors :
3 Willin Wang 100.0%
```
## LICENSE
MIT