Gathering detailed insights and metrics for fs-extra-promisify
Gathering detailed insights and metrics for fs-extra-promisify
Gathering detailed insights and metrics for fs-extra-promisify
Gathering detailed insights and metrics for fs-extra-promisify
npm install fs-extra-promisify
Typescript
Module System
Node Version
NPM Version
70.6
Supply Chain
81.9
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (96.89%)
Makefile (3.11%)
Total Downloads
83,272
Last Day
1
Last Week
7
Last Month
48
Last Year
1,216
6 Commits
1 Watchers
1 Branches
1 Contributors
Updated on May 10, 2016
Minified
Minified + Gzipped
Latest Version
0.0.2
Package Id
fs-extra-promisify@0.0.2
Size
3.91 kB
NPM Version
3.7.3
Node Version
5.9.1
Cumulative downloads
Total Downloads
Last Day
-75%
1
Compared to previous day
Last Week
-12.5%
7
Compared to previous week
Last Month
-36%
48
Compared to previous month
Last Year
-19.3%
1,216
Compared to previous year
2
This is a very small wrapper around fs-extra to convert it's async functionality to use es6 promises instead of callbacks or adding and additional dependencies to your package. I'm not doing anything fancy with this library just looping through the functions and converting the async functions to promise style using es6-promisify.
1npm install fs-extra-promisify --save
1import fs from 'fs-extra-promisify' 2 3async function read(file) { 4 return await fs.readFile(file) 5}
1var fs = require('fs-extra-promisify') 2 3function read(file) { 4 return new Promise(function(resolve, reject) { 5 fs.readFile(file).then(resolve).catch(reject) 6 }) 7}
Some people prefer to know that a function is async so for every function that is converted to async (aka fs.readFile
)
is also accessible through fs.async
. This means that fs.async.readFile
and fs.readFile
are the same function it's just a
matter of preference on how you want to write it. I would pick one or the other and stick with it throughout the project and
not mix them throughout the project because it can cause confusion to other developers that are looking at your code.
Since this is such a small wrapper around another library there aren't a whole lot of tests so if you come across an issue feel free to create a pull request with the fixes or open an issue and I'll get it fixed as soon as I can.
This Library doesn't include a polyfill for Promise. If your project needs to support older versions of node then you might have to add es6-promise at the root of your project, or another promise pollyfill like BlueBird.
1npm install es6-promise --save
1require('es6-promise').polyfill()
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/6 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
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license 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 2025-06-09
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