express-better-ratelimit
Version:
Express.js request rate limit middleware by IP with MemoryStore
35 lines (26 loc) • 765 B
Plain Text
# Makefile <https://github.com/tunnckoCore/dotfiles>
#
# Copyright (c) 2014 Charlike Mike Reagent, contributors.
# Released under the MIT license.
#
JSCS = node_modules/.bin/jscs
MOCHA = node_modules/.bin/mocha
_MOCHA = node_modules/.bin/_mocha
JSHINT = node_modules/.bin/jshint
ISTANBUL = node_modules/.bin/istanbul
COVERALLS = node_modules/.bin/coveralls
lint:
npm install
${JSHINT} .
${JSCS} . --reporter inline
test: lint
${MOCHA} --require should
test-cov: lint
${ISTANBUL} cover ${_MOCHA} -- --require should
test-travis: lint
${ISTANBUL} cover ${_MOCHA} --report lcovonly -- --require should
coveralls: test-travis
cat ./coverage/lcov.info | ${COVERALLS}
clean:
rm -rf node_modules coverage
.PHONY: lint test coveralls clean