New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

qiao-file

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qiao-file - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

18

index.js

@@ -287,2 +287,19 @@ 'use strict';

/**
* writeFileByLine
* @param {*} filePath
* @param {*} lines
*/
const writeFileByLine = (filePath, lines) => {
const f = fs.createWriteStream(filePath, {
flags: 'a'
});
for (let i = 0; i < lines.length; i++) {
f.write(`${lines[i]}\r\n`);
}
f.close();
};
exports.fs = fs;

@@ -300,1 +317,2 @@ exports.path = path;

exports.writeFile = writeFile;
exports.writeFileByLine = writeFileByLine;

4

package.json
{
"name": "qiao-file",
"version": "0.3.7",
"version": "0.3.8",
"description": "nodejs file tool",

@@ -17,3 +17,3 @@ "author": "uikoo9 <uikoo9@qq.com>",

},
"gitHead": "bfe17f576e60ba217701a9a9fdb131a3c1c01cd8"
"gitHead": "5250fa33202551302477d10408e6d6723e9f898a"
}

@@ -61,2 +61,19 @@ 'use strict';

}
};
/**
* writeFileByLine
* @param {*} filePath
* @param {*} lines
*/
export const writeFileByLine = (filePath, lines) => {
const f = fs.createWriteStream(filePath, {
flags: 'a'
});
for (let i = 0; i < lines.length; i++) {
f.write(`${lines[i]}\r\n`);
}
f.close();
};
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