Gathering detailed insights and metrics for promisify
Gathering detailed insights and metrics for promisify
Gathering detailed insights and metrics for promisify
Gathering detailed insights and metrics for promisify
npm install promisify
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
29 Stars
11 Commits
1 Forks
4 Watching
1 Branches
2 Contributors
Updated on 27 Oct 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-12.6%
42,548
Compared to previous day
Last week
6.9%
338,566
Compared to previous week
Last month
2.4%
1,350,807
Compared to previous month
Last year
867.5%
13,729,552
Compared to previous year
Promises are a popular solution to some of the drawbacks of the callback-style async APIs dominant in node.js libraries. But it's awkward to write an node.js application using promises when all the libraries you want to use are callback-based.
Hence Promisify. It converts callback-style APIs to use promises instead. To use it, you provide a concise description of the structure of the API to tell Promisify what to convert. For example, here is a sample which converts a substantial portion of the MongoDB driver API to Promises:
var promisify = require('promisify');
var promisify_collection = promisify.object({
insert: promisify.cb_func(),
remove: promisify.cb_func(),
findOne: promisify.cb_func(),
find: promisify.func(promisify.object({
stream: promisify.func(promisify.read_stream())
}))
});
var promisify_connection = promisify.object({
collection: promisify.cb_func(promisify_collection),
createCollection: promisify.cb_func(promisify_collection),
dropCollection: promisify.cb_func()
});
var promisify_mongodb = promisify.object({
connect: promisify.cb_func(promisify_connection)
});
var mongodb = promisify_mongodb(require('mongodb'));
Promisify is built upon the when.js implementation of promises.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/10 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
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