@jevesh/ratelimiter
v1.0.8
Published
Rate Limiter middleware implemented with node.js
Downloads
8
Readme
Project Name
@jevesh/ratelimiter is a Node.js package designed to provide rate-limiting functionality for your applications. This package helps you control the rate at which requests are processed, protecting your services from being overwhelmed by too many requests.
Prerequisites
This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
Table of contents
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installation
BEFORE YOU INSTALL: please read the prerequisites
Start with cloning this repo on your local machine:
$ git clone https://github.com/jevesh-code/rate-limiter.git
$ cd rate-limiter
To install and set up the library, run:
$ npm i @jevesh/ratelimiter
Or if you prefer using Yarn:
$ yarn add --dev myLib
API
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Run lint check:
npm run lint
- (Optional) Fix lint error (manually or use
npm run lint:fix
) - Add your changes:
git add .
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :sunglasses:
License
MIT License © Andrea SonnY