Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jeefo/fs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jeefo/fs - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

21

index.js

@@ -60,18 +60,19 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

my_fs.readFile = (filepath, options) => promise_wrapper((resolve, reject) => {
my_fs.readFile = (fp, options = {}) => promise_wrapper((resolve, reject) => {
fs.readFile(
filepath, options,
(err, data) => err ? reject(err) : resolve(data)
fp, options, (err, data) => err ? reject(err) : resolve(data)
);
});
my_fs.writeFile = (fp, data, options) => promise_wrapper((resolve, reject) => {
fs.writeFile(
fp, data, options,
(err, data) => err ? reject(err) : resolve(data)
);
});
my_fs.writeFile = (fp, data, options = {}) => promise_wrapper(
(resolve, reject) => {
fs.writeFile(
fp, data, options, err => err ? reject(err) : resolve()
);
}
);
my_fs.load_json = async filepath =>
my_fs.load_json = async filepath => {
JSON.parse(await my_fs.readFile(filepath, "utf8"));
};

@@ -78,0 +79,0 @@ my_fs.save_json = async (filepath, data) => {

{
"name": "@jeefo/fs",
"version": "0.0.5",
"version": "0.0.6",
"homepage": "https://github.com/je3f0o/fs",

@@ -5,0 +5,0 @@ "copyright": "2020",

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