Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hex7c0/tickle
request counter for Nodejs
https://github.com/hex7c0/tickle
nodejs request-counter
Last synced: about 1 month ago
JSON representation
request counter for Nodejs
- Host: GitHub
- URL: https://github.com/hex7c0/tickle
- Owner: hex7c0
- License: gpl-3.0
- Created: 2014-06-14T11:02:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T22:49:57.000Z (9 months ago)
- Last Synced: 2024-04-13T19:19:10.134Z (9 months ago)
- Topics: nodejs, request-counter
- Language: JavaScript
- Homepage: https://github.com/hex7c0/tickle
- Size: 166 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [tickle](https://github.com/hex7c0/tickle)
[![NPM version](https://img.shields.io/npm/v/tickle.svg)](https://www.npmjs.com/package/tickle)
[![Linux Status](https://img.shields.io/travis/hex7c0/tickle.svg?label=linux-osx)](https://travis-ci.org/hex7c0/tickle)
[![Windows Status](https://img.shields.io/appveyor/ci/hex7c0/tickle.svg?label=windows)](https://ci.appveyor.com/project/hex7c0/tickle)
[![Dependency Status](https://img.shields.io/david/hex7c0/tickle.svg)](https://david-dm.org/hex7c0/tickle)
[![Coveralls](https://img.shields.io/coveralls/hex7c0/tickle.svg)](https://coveralls.io/r/hex7c0/tickle)Request counter for [nodejs](http://nodejs.org), independent for every route
## Installation
Install through NPM
```bash
npm install tickle
```
or
```bash
git clone git://github.com/hex7c0/tickle.git
```## API
inside expressjs project
```js
var tickle = require('tickle');var app = require('express')();
app.use(tickle);
```Class is stored inside _global_ **Object**.
One istance for environment.
```js
global.tickle;
```### Methods
reset all counter
```js
global.tickle.reset();
```get time per request
```js
global.tickle.tpr();
```routing information are stored inside an **Object**
```js
global.tickle.route;
```## Examples
Take a look at my [examples](examples)
### [License GPLv3](LICENSE)