Skip to content

Commit

Permalink
Merge pull request #12 from frenchbread/feature/update-dependencies
Browse files Browse the repository at this point in the history
Feature/update dependencies (v2.2.0)
  • Loading branch information
frenchbread committed Apr 7, 2021
2 parents b271563 + 3eb39a4 commit 664a127
Show file tree
Hide file tree
Showing 9 changed files with 8,314 additions and 7,107 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

11 changes: 0 additions & 11 deletions .eslintrc

This file was deleted.

27 changes: 10 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,43 @@
# private-ip
private-ip
--

> Check if IP address is private.
[![NPM](https://nodei.co/npm/private-ip.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/private-ip/)

[![NPM](https://nodei.co/npm-dl/private-ip.png)](https://nodei.co/npm/private-ip/)



### Installation

```bash
$ npm install private-ip --save
npm install private-ip --save

or

$ yarn add private-ip
yarn add private-ip
```

### Usage

```js
const is_ip_private = require('private-ip')

import isIpPrivate from 'private-ip';

isIpPrivate('10.0.0.0');
is_ip_private('10.0.0.0')
// => true

isIpPrivate('101.0.26.90');
is_ip_private('101.0.26.90')
// => false

```

### Dev
### Development

##### Tests

```bash
$ npm run test
$ yarn run test
```

##### Build

```bash
$ npm run build
$ yarn run build
```

### Authors
Expand All @@ -63,4 +57,3 @@ $ npm run build
### IANA Reserved IP list

https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry-1.csv

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'use strict'

module.exports = require('./lib').default
module.exports = require('./lib')

0 comments on commit 664a127

Please sign in to comment.