<commit_before># package-info  v3.0.1

[![Join the chat at https://gitter.im/AlessandroMinoccheri/package-info](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AlessandroMinoccheri/package-info?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Build Status](https://api.travis-ci.org/AlessandroMinoccheri/package-info.png)](https://travis-ci.org/AlessandroMinoccheri/package-info)

> Get information about NPM packages. Contribute to package-info development by creating an account on GitHub.

Fetches the information directly from the registry

https://www.npmjs.org/package/package-info

To create this repository I have forked this project and make some edit:

https://github.com/sindresorhus/npm-name

Thanks to the author https://github.com/sindresorhus

The information that you can retrieve are:
- <b>package name</b>
- <b>package version</b>
- <b>package description</b>
- <b>package license</b>
- <b>package homepage</b>
- <b>package author name</b> (from the 2.1.0 version 'author name' can be the list of maintainers who have contributed to the package, if this parameter is specified in the package.json of the package.)

## Install

```sh
$ npm install --save package-info
```


## Usage

```js
var info = require('package-info');

info('package-info', function (err, informations) {
	console.log(informations);
});
```

## CLI

```sh
$ npm install --global package-info
```

```sh
$ package-info --help<commit_msg>update readme file<commit_after># package-info  v3.0.1

[![Join the chat at https://gitter.im/AlessandroMinoccheri/package-info](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AlessandroMinoccheri/package-info?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Build Status](https://api.travis-ci.org/AlessandroMinoccheri/package-info.png)](https://travis-ci.org/AlessandroMinoccheri/package-info)

> Get information about NPM packages. Contribute to package-info development by creating an account on GitHub.

Fetches the information directly from the registry

https://www.npmjs.org/package/package-info

To create this repository I have forked this project and make some edit:

https://github.com/sindresorhus/npm-name

Thanks to the author https://github.com/sindresorhus

The information that you can retrieve are:
- <b>package name</b>
- <b>package version</b>
- <b>package description</b>
- <b>package license</b>
- <b>package homepage</b>
- <b>package author name</b> (from the 2.1.0 version 'author name' can be the list of maintainers who have contributed to the package, if this parameter is specified in the package.json of the package.)

## Install

```sh
$ npm install --save package-info
```


## Usage

```js
var info = require('package-info');

(async () => {
    console.log(await info('package-info'));
})();
```

## CLI

```sh
$ npm install --global package-info
```

```sh
$ package-info --help
{'fraction_non_alphanumeric': 0.1428083361803895, 'fraction_numerical': 0.005466347796378545, 'mean_word_length': 4.786561264822135, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 30, 'https://': 16, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3535984', 'n_tokens_mistral': 1001, 'n_tokens_neox': 960, 'n_words': 251}