https://github.com/hex7c0/tickle
request counter for Nodejs
https://github.com/hex7c0/tickle
nodejs request-counter
Last synced: 8 months 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 (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T00:04:16.000Z (about 2 years ago)
- Last Synced: 2025-09-28T01:55:58.033Z (9 months ago)
- Topics: nodejs, request-counter
- Language: JavaScript
- Homepage: https://github.com/hex7c0/tickle
- Size: 120 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [tickle](https://github.com/hex7c0/tickle)
[](https://www.npmjs.com/package/tickle)
[](https://travis-ci.org/hex7c0/tickle)
[](https://ci.appveyor.com/project/hex7c0/tickle)
[](https://david-dm.org/hex7c0/tickle)
[](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)