Socket
Socket
Sign inDemoInstall

fs-then-native

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-then-native - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

es5/lib/fs-then-native.js
'use strict';
var fs = require('fs');
var fsThen = Object.assign({}, fs);
var fsThen = {};
for (var method in fs) {
fsThen[method] = fs[method];
}
fsThen.writeFile = function () {

@@ -7,0 +11,0 @@ var _arguments = arguments;

@@ -99,2 +99,6 @@ 'use strict';

});
});
runner.test('everything else exists', function () {
a.ok(fsThen.chown && fsThen.lstat && fsThen.symlink && fs.watch);
});

4

package.json
{
"name": "fs-then-native",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "1.0.0",
"version": "1.0.1",
"description": "Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available",

@@ -24,3 +24,3 @@ "repository": "https://github.com/75lb/fs-then-native.git",

"rimraf": "^2.5.4",
"test-runner": "^0.2.4"
"test-runner": "^0.2.5"
},

@@ -27,0 +27,0 @@ "dependencies": {

'use strict'
const fs = require('fs')
const fsThen = Object.assign({}, fs)
const fsThen = {}
/* quick clone */
for (var method in fs) {
fsThen[method] = fs[method]
}
fsThen.writeFile = function () {

@@ -6,0 +11,0 @@ return new Promise((resolve, reject) => {

@@ -115,1 +115,5 @@ 'use strict'

})
runner.test('everything else exists', function () {
a.ok(fsThen.chown && fsThen.lstat && fsThen.symlink && fs.watch)
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc