{"_id":"rate-limit-memcached","_rev":"9-9055a94590f321c239487bd485315a7b","name":"rate-limit-memcached","description":"A memcached store for the express-rate-limit middleware.","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"rate-limit-memcached","description":"Rate Limit Memcached ====================","version":"0.1.0","author":{"name":"linyows"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/linyows/rate-limit-memcached.git"},"homepage":"https://github.com/linyows/rate-limit-memcached","keywords":["express","api","memcached","rate-limit"],"bugs":{"url":"https://github.com/linyows/rate-limit-memcached/issues"},"main":"./index.js","types":"./lib/types.d.ts","files":["MIT-LICENSE","README.md","index.js","lib/"],"directories":{"lib":"./lib","src":"./src"},"dependencies":{"memcached":"^2.2.2"},"devDependencies":{"@types/memcached":"^2.2.4","@types/node":"^8.0.32","ava":"^0.22.0","nsp":"^2.8.1","coveralls":"^3.0.0","nyc":"^11.2.1","tslint":"^5.7.0","tslint-microsoft-contrib":"^5.0.1","typescript":"^2.5.3"},"engines":{"node":">=8.9.0"},"ava":{"files":["./lib/**/*.test.js"]},"scripts":{"build":"tsc","clean":"rm -rf lib","ci":"npm install && npm run lint && npm run cov && nsp check","test":"npm run build && ava -v","cov":"npm run build && nyc ava","lint":"tslint -p tsconfig.json -c tslint.json src/**/*.ts","preversion":"npm run clean && npm run build && npm test","postversion":"git push origin --tags","prepublishOnly":"npm run clean && npm run build && npm test"},"gitHead":"7b09940b6bca42353c8dcf244271ae0f88be4516","_id":"rate-limit-memcached@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linyows","email":"linyows@gmail.com"},"dist":{"integrity":"sha512-cToXYpG5CwlIPI5vcJ0jFUK1n/3/y+kcjoeY/6wyyebNg0S9kzjtgnLb5tsIHo2VACNaVZTTGCzxO2CdG2Hrtw==","shasum":"cd0e7880c878c94b66ffdd54abb78b5b5d0c4a6c","tarball":"https://registry.npmjs.org/rate-limit-memcached/-/rate-limit-memcached-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzrPCFVmzS9yahVHyZWSP/KZETLMaPmmYs7b778xB3jAIhAO2ruDQ4f6sPmzBpbABZWk/tGV4acctZGv9+wKrrW7yU"}]},"maintainers":[{"name":"linyows","email":"linyows@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-memcached-0.1.0.tgz_1513070678075_0.2297836341895163"}},"0.2.0":{"name":"rate-limit-memcached","description":"Rate Limit Memcached ====================","version":"0.2.0","author":{"name":"linyows"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/linyows/rate-limit-memcached.git"},"homepage":"https://github.com/linyows/rate-limit-memcached","keywords":["express","api","memcached","rate-limit"],"bugs":{"url":"https://github.com/linyows/rate-limit-memcached/issues"},"main":"./index.js","types":"./lib/types.d.ts","files":["MIT-LICENSE","README.md","index.js","lib/"],"directories":{"lib":"./lib","src":"./src"},"dependencies":{"memcached":"^2.2.2"},"devDependencies":{"@types/memcached":"^2.2.4","@types/node":"^8.0.32","ava":"^0.22.0","nsp":"^2.8.1","coveralls":"^3.0.0","nyc":"^11.2.1","tslint":"^5.7.0","tslint-microsoft-contrib":"^5.0.1","typescript":"^2.5.3","testdouble":"^3.2.6"},"engines":{"node":">=8.9.0"},"ava":{"files":["./lib/**/*.test.js"]},"scripts":{"build":"tsc","clean":"rm -rf lib","ci":"npm install && npm run lint && npm run cov && nsp check","test":"npm run build && ava -v","cov":"npm run build && nyc ava","lint":"tslint -p tsconfig.json -c tslint.json src/**/*.ts","preversion":"npm run clean && npm run build && npm test","postversion":"git push origin --tags","prepublishOnly":"npm run clean && npm run build && npm test"},"gitHead":"5a22a9a1e7056ed1afffef35c465e5f0dffdf909","_id":"rate-limit-memcached@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linyows","email":"linyows@gmail.com"},"dist":{"integrity":"sha512-2Y0R+7yMg5IpuNJNurlF8rMCL0UW880uDoGYFm5BR4YJvuFVHOtBO88D2gJPNHEC5ItY+0vue8gt8L8VUloG6w==","shasum":"2c2576c39836e15a166fbf7dcdd72b4c48c27c1b","tarball":"https://registry.npmjs.org/rate-limit-memcached/-/rate-limit-memcached-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4F3odhqeM0zQJJWBHHmrhWRrD6EBDP23MEWW1cSp9MAiEAxIglZyaZ35uUt6D2xfBZLAK63Z7Ww73KREIslaHrXjI="}]},"maintainers":[{"name":"linyows","email":"linyows@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-memcached-0.2.0.tgz_1513095416294_0.2779224228579551"}},"0.3.0":{"name":"rate-limit-memcached","description":"Memcached client for the express-rate-limit middleware.","version":"0.3.0","author":{"name":"linyows"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/linyows/rate-limit-memcached.git"},"homepage":"https://github.com/linyows/rate-limit-memcached","keywords":["express","api","memcached","rate-limit"],"bugs":{"url":"https://github.com/linyows/rate-limit-memcached/issues"},"main":"./index.js","types":"./lib/memcached-store.d.ts","files":["MIT-LICENSE","README.md","index.js","lib/"],"directories":{"lib":"./lib","src":"./src"},"dependencies":{"memcached":"^2.2.2"},"devDependencies":{"@types/memcached":"^2.2.4","@types/node":"^8.0.32","ava":"^0.22.0","nsp":"^2.8.1","coveralls":"^3.0.0","nyc":"^11.2.1","tslint":"^5.7.0","tslint-microsoft-contrib":"^5.0.1","typescript":"^2.5.3","testdouble":"^3.2.6"},"engines":{"node":">=8.9.0"},"ava":{"files":["./lib/**/*.test.js"]},"scripts":{"build":"tsc","clean":"rm -rf lib","ci":"npm install && npm run lint && npm run cov && nsp check","test":"npm run build && ava -v","cov":"npm run build && nyc ava","lint":"tslint -p tsconfig.json -c tslint.json src/**/*.ts","preversion":"npm run clean && npm run build && npm test","postversion":"git push origin --tags","prepublishOnly":"npm run clean && npm run build && npm test"},"gitHead":"cd3ae10faf5f8d442ed3645392f75ac6f793bebf","_id":"rate-limit-memcached@0.3.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linyows","email":"linyows@gmail.com"},"dist":{"integrity":"sha512-8snJ/EKljad4ZqrC63ISwr/khgxRANXCfwdwYAoxeyHLTxVLMxFZqVnlHAciDM+zU3q7DJ6XjS+Ttz64316iLw==","shasum":"b5841a10c110beac61bf3f3ece5447bed7fe34df","tarball":"https://registry.npmjs.org/rate-limit-memcached/-/rate-limit-memcached-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHSrT02UQQRUkQzgvFJcBTgA+JMFtcxi38sSNefvkspoAiAds2uQbp9If/WgESIV2QgvqA1xSmcMaGmXQB2oZA8lxA=="}]},"maintainers":[{"name":"linyows","email":"linyows@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-memcached-0.3.0.tgz_1513126638299_0.9140425163786858"}},"0.4.0":{"name":"rate-limit-memcached","description":"Memcached client for the express-rate-limit middleware.","version":"0.4.0","author":{"name":"linyows"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/linyows/rate-limit-memcached.git"},"homepage":"https://github.com/linyows/rate-limit-memcached","keywords":["express","api","memcached","rate-limit"],"bugs":{"url":"https://github.com/linyows/rate-limit-memcached/issues"},"main":"./index.js","types":"./lib/memcached-store.d.ts","files":["MIT-LICENSE","README.md","index.js","lib/"],"directories":{"lib":"./lib","src":"./src"},"dependencies":{"memcached":"^2.2.2"},"devDependencies":{"@types/memcached":"^2.2.4","@types/node":"^8.0.32","ava":"^0.22.0","nsp":"^2.8.1","coveralls":"^3.0.0","nyc":"^11.2.1","tslint":"^5.7.0","tslint-microsoft-contrib":"^5.0.1","typescript":"^2.5.3","testdouble":"^3.2.6"},"engines":{"node":">=8.9.0"},"ava":{"files":["./lib/**/*.test.js"]},"scripts":{"build":"tsc","clean":"rm -rf lib","ci":"npm install && npm run lint && npm run cov && nsp check","test":"npm run build && ava -v","cov":"npm run build && nyc ava","lint":"tslint -p tsconfig.json -c tslint.json src/**/*.ts","preversion":"npm run clean && npm run build && npm test","postversion":"git push origin --tags","prepublishOnly":"npm run clean && npm run build && npm test"},"gitHead":"862eeddd125edd08264a220d5680f508f73280c8","_id":"rate-limit-memcached@0.4.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linyows","email":"linyows@gmail.com"},"dist":{"integrity":"sha512-fPJd5dw0/dEgTurrPRg7UsfYshUSzYjrIGZihOtx6UDDf7FmbXmiziMVNRRX0ngpi/X6be0U2eSgdyn9nkFhOg==","shasum":"765c5e0201c6b6c1031de1343e0d28b26d76b933","tarball":"https://registry.npmjs.org/rate-limit-memcached/-/rate-limit-memcached-0.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA23503La1/rmZBikvj+R058/+2CW9G8kXG3ACFlMZfxAiAzotq0LWLXRibEtyNse2HGsGZzxydiMG9h3NozTtaVLQ=="}]},"maintainers":[{"name":"linyows","email":"linyows@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-memcached-0.4.0.tgz_1513132818503_0.39861645782366395"}},"0.5.0":{"name":"rate-limit-memcached","description":"Memcached client for the express-rate-limit middleware.","version":"0.5.0","author":{"name":"linyows"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/linyows/rate-limit-memcached.git"},"homepage":"https://github.com/linyows/rate-limit-memcached","keywords":["express","api","memcached","rate-limit"],"bugs":{"url":"https://github.com/linyows/rate-limit-memcached/issues"},"main":"./index.js","types":"./lib/memcached-store.d.ts","files":["MIT-LICENSE","README.md","index.js","lib/"],"directories":{"lib":"./lib","src":"./src"},"dependencies":{"memcached":"^2.2.2"},"devDependencies":{"@types/memcached":"^2.2.4","@types/node":"^8.0.32","ava":"^0.22.0","nsp":"^2.8.1","coveralls":"^3.0.0","nyc":"^11.2.1","tslint":"^5.7.0","tslint-microsoft-contrib":"^5.0.1","typescript":"^2.5.3","testdouble":"^3.2.6"},"engines":{"node":">=8.9.0"},"ava":{"files":["./lib/**/*.test.js"]},"scripts":{"build":"tsc","clean":"rm -rf lib","ci":"npm install && npm run lint && npm run cov && nsp check","test":"npm run build && ava -v","cov":"npm run build && nyc ava","lint":"tslint -p tsconfig.json -c tslint.json src/**/*.ts","preversion":"npm run clean && npm run build && npm test","postversion":"git push origin --tags","prepublishOnly":"npm run clean && npm run build && npm test"},"gitHead":"7e583ec9a11b3a34a0111b6a218d0fbc09bcde3d","_id":"rate-limit-memcached@0.5.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linyows","email":"linyows@gmail.com"},"dist":{"integrity":"sha512-3XyMYI79yL3gi4v381rwK3juEifsVMP8iApEeZgpWsYGN3/aqci2dR8MaYw24S7BFfELW+JHCCZY2g5+au0Zkw==","shasum":"8b7e4127d734395d6dfbf5365a1a64656dbca31c","tarball":"https://registry.npmjs.org/rate-limit-memcached/-/rate-limit-memcached-0.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC80sx613ITuS0/nMq3zDr3ZEe+0+IcpxVk+YLMAeZnDwIhAOWzSBE/5AZ4L0oQgmAX1b/drjlTj8uZH4513U6TS3RL"}]},"maintainers":[{"name":"linyows","email":"linyows@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-memcached-0.5.0.tgz_1513133687782_0.6174604769330472"}},"0.6.0":{"name":"rate-limit-memcached","description":"Memcached client for the express-rate-limit middleware.","version":"0.6.0","author":{"name":"linyows"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/linyows/rate-limit-memcached.git"},"homepage":"https://github.com/linyows/rate-limit-memcached","keywords":["express","api","memcached","rate-limit"],"bugs":{"url":"https://github.com/linyows/rate-limit-memcached/issues"},"main":"./index.js","types":"./lib/memcached-store.d.ts","files":["MIT-LICENSE","README.md","index.js","lib/"],"directories":{"lib":"./lib","src":"./src"},"dependencies":{"memcached":"^2.2.2"},"devDependencies":{"@types/memcached":"^2.2.4","@types/node":"^8.0.32","ava":"^0.22.0","nsp":"^2.8.1","coveralls":"^3.0.0","nyc":"^11.2.1","tslint":"^5.7.0","tslint-microsoft-contrib":"^5.0.1","typescript":"^2.5.3","testdouble":"^3.2.6"},"engines":{"node":">=8.9.0"},"ava":{"files":["./lib/**/*.test.js"]},"scripts":{"build":"tsc","clean":"rm -rf lib","ci":"npm install && npm run lint && npm run cov && nsp check","test":"npm run build && ava -v","cov":"npm run build && nyc ava","lint":"tslint -p tsconfig.json -c tslint.json src/**/*.ts","preversion":"npm run clean && npm run build && npm test","postversion":"git push origin --tags","prepublishOnly":"npm run clean && npm run build && npm test"},"gitHead":"a787145d12d8a1931d7353aff166bc5960cf7733","_id":"rate-limit-memcached@0.6.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linyows","email":"linyows@gmail.com"},"dist":{"integrity":"sha512-/qVmM6JqOosUPynxEVm0t7DEYv5k/HVybVyqjA07PahMg9CLhzC4llYRzJKPOiop8BQlS8tMh6DBksnAI+0T7w==","shasum":"e769afe3052d80ef55126f19075fa572951392b2","tarball":"https://registry.npmjs.org/rate-limit-memcached/-/rate-limit-memcached-0.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/A/VduLupbuU5TCT8XwpSq+hUsM3TL1MF+tmNVbtu1AIhAJOHh4402NJeNDlcaNsNd1gsMyxXDyPMSa2K2yT65oMd"}]},"maintainers":[{"name":"linyows","email":"linyows@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-memcached-0.6.0.tgz_1513262244493_0.6646507969126105"}},"1.0.0":{"name":"rate-limit-memcached","version":"1.0.0","description":"A memcached store for the express-rate-limit middleware.","author":{"name":"linyows"},"license":"MIT","homepage":"https://github.com/express-rate-limit/rate-limit-memcached","repository":{"type":"git","url":"git+https://github.com/express-rate-limit/rate-limit-memcached.git"},"keywords":["express","api","memcached","rate-limit"],"type":"module","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">= 16"},"scripts":{"clean":"del-cli dist/ coverage/ *.log *.tmp *.bak *.tgz","build":"pkgroll --target=es2020 --src source/","compile":"run-s clean build","lint:code":"xo","lint:rest":"prettier --check .","lint":"run-s lint:*","format:code":"xo --fix","format:rest":"prettier --write .","format":"run-s format:*","test:lib":"jest","test":"run-s lint test:lib","pre-commit":"lint-staged","prepare":"run-s compile && husky install config/husky"},"dependencies":{"@types/memcached":"2.2.7","memcached":"2.2.2"},"devDependencies":{"@express-rate-limit/prettier":"1.1.0","@express-rate-limit/tsconfig":"1.0.0","@jest/globals":"29.7.0","@types/jest":"29.5.4","@types/node":"20.6.1","cross-env":"7.0.3","del-cli":"5.1.0","husky":"8.0.3","jest":"29.7.0","lint-staged":"14.0.1","memcached-mock":"0.1.0","npm-run-all":"4.1.5","pkgroll":"1.11.0","ts-jest":"29.1.1","ts-node":"10.9.1","tsx":"3.12.10","typescript":"5.2.2","xo":"0.56.0"},"peerDependencies":{"express-rate-limit":">= 6"},"xo":{"prettier":true},"prettier":"@express-rate-limit/prettier","lint-staged":{"{source,test}/**/*.ts":"xo --fix","**/*.{json,yaml,md}":"prettier --write "},"gitHead":"60e55f2bacb13c0eb1085dae7fbde9f527b6c5b8","bugs":{"url":"https://github.com/express-rate-limit/rate-limit-memcached/issues"},"_id":"rate-limit-memcached@1.0.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-cgcbu4umuXrudesmN85hoy/bVknm0DfF/0mgr+JF/lhAqvDKixq9qxUGr758B0GXlMEbQQ5gM/7MkBRvSFcYYA==","shasum":"09cda993542f8474b747917d9d1d73ea8b99c4a9","tarball":"https://registry.npmjs.org/rate-limit-memcached/-/rate-limit-memcached-1.0.0.tgz","fileCount":10,"unpackedSize":28800,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+77le+yFLRR8Ue5LXRtqMnTvmAEyRY69c5ssOv4VpMwIhAMfLuKd1iFi8/2suxxRa3nL3YrHKx7ApfNFknN5i9NRP"}]},"_npmUser":{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},"directories":{},"maintainers":[{"name":"linyows","email":"linyows@gmail.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-memcached_1.0.0_1694969156672_0.7905270772297164"},"_hasShrinkwrap":false},"1.0.1":{"name":"rate-limit-memcached","version":"1.0.1","description":"A memcached store for the express-rate-limit middleware.","author":{"name":"linyows"},"license":"MIT","homepage":"https://github.com/express-rate-limit/rate-limit-memcached","repository":{"type":"git","url":"git+https://github.com/express-rate-limit/rate-limit-memcached.git"},"keywords":["express","api","memcached","rate-limit"],"type":"module","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","engines":{"node":">= 16"},"scripts":{"clean":"del-cli dist/ coverage/ *.log *.tmp *.bak *.tgz","build":"pkgroll --target=es2020 --src source/","compile":"run-s clean build","lint:code":"xo","lint:rest":"prettier --check .","lint":"run-s lint:*","format:code":"xo --fix","format:rest":"prettier --write .","format":"run-s format:*","test:lib":"jest","test":"run-s lint test:lib","pre-commit":"lint-staged","prepare":"run-s compile && husky install config/husky"},"dependencies":{"@types/memcached":"2.2.7","memcached":"2.2.2"},"devDependencies":{"@express-rate-limit/prettier":"1.1.0","@express-rate-limit/tsconfig":"1.0.0","@jest/globals":"29.7.0","@types/jest":"29.5.4","@types/node":"20.6.1","cross-env":"7.0.3","del-cli":"5.1.0","husky":"8.0.3","jest":"29.7.0","lint-staged":"14.0.1","memcached-mock":"0.1.0","npm-run-all":"4.1.5","pkgroll":"1.11.0","ts-jest":"29.1.1","ts-node":"10.9.1","tsx":"3.12.10","typescript":"5.2.2","xo":"0.56.0"},"peerDependencies":{"express-rate-limit":">= 6"},"xo":{"prettier":true},"prettier":"@express-rate-limit/prettier","lint-staged":{"{source,test}/**/*.ts":"xo --fix","**/*.{json,yaml,md}":"prettier --write "},"_id":"rate-limit-memcached@1.0.1","gitHead":"94b681d9bb833924f0e4950a5f026edeeea7d5d5","bugs":{"url":"https://github.com/express-rate-limit/rate-limit-memcached/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-xfrF5ps7NnEb+ma0okcZI6zz4Vjvudg8Af8cF5OF3dhDHVPWRcXKRjlbYPtnnyaEnEs8STsQ6s3AmA0AC/NetQ==","shasum":"08ed52a17706fc5425e564f04c6a8ea758185c8e","tarball":"https://registry.npmjs.org/rate-limit-memcached/-/rate-limit-memcached-1.0.1.tgz","fileCount":10,"unpackedSize":29002,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rate-limit-memcached@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZGJokRjqm0OvG/GwbGZMz5CzfBCdu95+i//pN5Nx4VwIhAJ9wz7lOV7Sd5JIROugoDE0jDy1o6KMAmD+UycMAAb1i"}]},"_npmUser":{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},"directories":{},"maintainers":[{"name":"linyows","email":"linyows@gmail.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-memcached_1.0.1_1696848214216_0.057989513137785886"},"_hasShrinkwrap":false}},"readme":"# <div align=\"center\"> `rate-limit-memcached` </div>\n\n<div align=\"center\">\n\n[![tests](https://github.com/express-rate-limit/rate-limit-memcached/actions/workflows/ci.yaml/badge.svg)](https://github.com/express-rate-limit/rate-limit-memcached/actions/workflows/ci.yaml)\n[![npm version](https://img.shields.io/npm/v/rate-limit-memcached.svg)](https://npmjs.org/package/rate-limit-memcached 'View this project on NPM')\n[![npm downloads](https://img.shields.io/npm/dm/rate-limit-memcached)](https://www.npmjs.com/package/rate-limit-memcached)\n\nA [`memcached`](https://memcached.org) store for the\n[`express-rate-limit`](https://github.com/express-rate-limit/express-rate-limit)\nmiddleware.\n\n</div>\n\n## Installation\n\nFrom the npm registry:\n\n```sh\n# Using npm\n> npm install express-rate-limit\n# Using yarn or pnpm\n> yarn/pnpm add express-rate-limit\n```\n\nFrom Github Releases:\n\n```sh\n# Using npm\n> npm install https://github.com/express-rate-limit/rate-limit-memcached/releases/download/v{version}/rate-limit-memcached.tgz\n# Using yarn or pnpm\n> yarn/pnpm add https://github.com/express-rate-limit/rate-limit-memcached/releases/download/v{version}/rate-limit-memcached.tgz\n```\n\nReplace `{version}` with the version of the package that you want to your, e.g.:\n`1.0.0`.\n\n## Usage\n\n**This package requires you to use Node 16 or above.**\n\nAn example of its usage is as follows:\n\n```ts\nimport { rateLimit } from 'express-rate-limit'\nimport { MemcachedStore } from 'rate-limit-memcached'\n\nconst limiter = rateLimit({\n\twindowMs: 15 * 60 * 1000, // 15 minutes.\n\tmax: 100, // Limit each IP to 100 requests per `window` (here, per 15 minutes).\n\tstandardHeaders: 'draft-7', // Return rate limit info in the `RateLimit` header.\n\tlegacyHeaders: false, // Disable the `X-RateLimit-*` headers.\n\tstore: new MemcachedStore({\n\t\t// prefix: 'rl:', // The prefix attached to all keys stored in the cache.\n\t\tlocations: ['localhost:11211'], // The server location(s), passed directly to Memcached.\n\t}),\n})\n\n// Apply the rate limiting middleware to all requests\napp.use(limiter)\n```\n\n## Configuration\n\n### `prefix`\n\n> `string`\n\nThe text to prepend to all keys stored by this package in Memcached.\n\nDefaults to `rl:`.\n\n### `client`\n\n> `MemcachedClient`\n\nThe client used to make requests to the Memcached server. Must have the\nfollowing methods:\n\n- `get: (key, callback)`\n- `del: (key, callback)`\n- `set: (key, value, lifetime, callback)`\n- `add: (key, value, lifetime, callback)`\n- `incr: (key, delta, callback)`\n- `decr: (key, delta, callback)`\n\n> Here, `key` is a string, `value` and `delta` are numbers, and `lifetime` is\n> the time in seconds until it expires.\n\nDefaults to an instance of [`memcached`](https://github.com/3rd-Eden/memcached),\ncreated with the `locations` and `config` options (see below for details) passed\nto it.\n\n### `locations`\n\nA list of memcached servers to store the keys in, passed to the default\nMemcached client.\n\nNote that the default client is only used if an alternative `client` is not\npassed to the store.\n\nDefaults to `['localhost:11211']`.\n\n### `config`\n\n> `object`\n\nThe configuration passed to the default Memcached client.\n\nDefaults to `{}`.\n\n## Issues and Contributing\n\nIf you encounter a bug or want to see something added/changed, please go ahead\nand\n[open an issue](https://github.com/express-rate-limitedly/rate-limit-memcached/issues/new)!\nIf you need help with something, feel free to\n[start a discussion](https://github.com/express-rate-limit/rate-limit-memcached/discussions/new)!\n\nIf you wish to contribute to the library, thanks! First, please read\n[the contributing guide](contributing.md). Then you can pick up any issue and\nfix/implement it!\n\n## License\n\nMIT © [Tomohisa Oda](http://github.com/linyows),\n[Nathan Friedly](http://nfriedly.com) and\n[Vedant K](https://github.com/gamemaker1)\n","maintainers":[{"name":"linyows","email":"linyows@gmail.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"}],"time":{"modified":"2023-10-09T10:43:34.818Z","created":"2017-12-12T09:24:38.214Z","0.1.0":"2017-12-12T09:24:38.214Z","0.2.0":"2017-12-12T16:16:56.356Z","0.3.0":"2017-12-13T00:57:18.371Z","0.4.0":"2017-12-13T02:40:18.622Z","0.5.0":"2017-12-13T02:54:47.848Z","0.6.0":"2017-12-14T14:37:24.626Z","1.0.0":"2023-09-17T16:45:56.878Z","1.0.1":"2023-10-09T10:43:34.378Z"},"homepage":"https://github.com/express-rate-limit/rate-limit-memcached","keywords":["express","api","memcached","rate-limit"],"repository":{"type":"git","url":"git+https://github.com/express-rate-limit/rate-limit-memcached.git"},"author":{"name":"linyows"},"bugs":{"url":"https://github.com/express-rate-limit/rate-limit-memcached/issues"},"license":"MIT","readmeFilename":"readme.md"}