Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rajikaimal/ferreter
- Owner: rajikaimal
- License: mit
- Created: 2016-07-19T14:47:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-10T11:30:12.000Z (over 6 years ago)
- Last Synced: 2024-10-06T17:41:52.760Z (about 1 month ago)
- Topics: javascript, nodejs, statistics
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)