Gathering detailed insights and metrics for fastify-locks
Gathering detailed insights and metrics for fastify-locks
Gathering detailed insights and metrics for fastify-locks
Gathering detailed insights and metrics for fastify-locks
npm install fastify-locks
Typescript
Module System
Node Version
NPM Version
JavaScript (63.01%)
TypeScript (36.99%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
10 Stars
4 Commits
2 Forks
4 Watchers
3 Branches
4 Contributors
Updated on May 17, 2024
Latest Version
3.0.0
Package Id
fastify-locks@3.0.0
Unpacked Size
13.93 kB
Size
6.11 kB
File Count
15
NPM Version
10.2.4
Node Version
21.4.0
Published on
Dec 21, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
7
1const fastify = require('fastify')(); 2 3fastify.register(require('fastify-locks'), {}); 4 5// Declare a route 6fastify.get('/', async (request, reply) => { 7 await fastify.locks.request('hello', () => { 8 // Do something that requires an exclusive lock, 9 // such as updating a shared resource. 10 }); 11 reply.send('hello world'); 12}); 13 14// Run the server! 15fastify.listen(3000, function (err, address) { 16 if (err) { 17 fastify.log.error(err); 18 process.exit(1); 19 } 20 fastify.log.info(`server listening on ${address}`); 21});
Once registered, the plugin decorates the fastify
instance
with a new locks
property:
fastify.locks.request(name[, options], callback)
fastify.locks.query()
See the Piscina-locks docs for more information.
Piscina development is sponsored by NearForm Research.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More