Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rajikaimal/ferreter

:telescope: Collect anonymous usage for NPM package usage
https://github.com/rajikaimal/ferreter

javascript nodejs statistics

Last synced: 11 days ago
JSON representation

:telescope: Collect anonymous usage for NPM package usage

Awesome Lists containing this project

README

        

# ferreter [![Build Status](https://travis-ci.org/rajikaimal/ferreter.svg?branch=master)](https://travis-ci.org/rajikaimal/ferreter)

Collect anonymous usage for NPM package usage

## Install

```
yarn add ferreter --save-dev
```

## Usage

```js
const ferreter = require('ferreter');

ferreter('http://google.com', {'key': 'value'})
.then((res) => {
console.log('Done', res);
})
.catch((err) => {
console.log('Something happened', err);
});
```

## API

### ferreter(url, data)

Returns a promise

#### url

Type: `string`

URL to post usage statistics

#### data

Type: `object`

Custom object containing statistics

## License

MIT © [Rajika Imal](https://rajikaimal.github.io)