Skip to content

Instantly share code, notes, and snippets.

@isaacs
Last active October 22, 2019 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/bbf8cecc0deee4fb535e3b153e81732b to your computer and use it in GitHub Desktop.
Save isaacs/bbf8cecc0deee4fb535e3b153e81732b to your computer and use it in GitHub Desktop.
const gfs2 = require('gf')
const gfs = require('graceful-fs')
const fs = require('fs')
gfs.gracefulify(fs)
gfs2.gracefulify(fs)
fs.createReadStream(__filename)
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"gf": {
"version": "npm:graceful-fs@4.2.1",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.1.tgz",
"integrity": "sha512-b9usnbDGnD928gJB3LrCmxoibr3VE4U2SMo5PBuBnokWyDADTqDPXg4YpwKF1trpH+UbGp7QLicO3+aWEy0+mw=="
},
"graceful-fs": {
"version": "4.2.2",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz",
"integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q=="
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment