Socket
Socket
Sign inDemoInstall

yu-node

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

7

lib/getAllFiles.js
const fs = require('fs');
const path = require('path');
exports.getAllFiles = dir => {
let dirPath = path.join(__dirname,dir);
exports.getAllFiles = dirPath => {
const bool = fs.existsSync(dirPath); //判断目录是否存在

@@ -24,2 +23,4 @@ if(!bool) return;

return arr;
}
}
exports.getAllFiles('./lib');

@@ -22,4 +22,3 @@ const fs = require('fs');

exports.emptyDir = dir => {
let dirPath = path.join(__dirname,dir);
exports.emptyDir = dirPath => {
const bool = fs.existsSync(dirPath); //判断目录是否存在

@@ -32,4 +31,3 @@ if(!bool) return;

exports.rmDir = dir => {
let dirPath = path.join(__dirname,dir);
exports.rmDir = dirPath => {
const bool = fs.existsSync(dirPath); //判断目录是否存在

@@ -36,0 +34,0 @@ if(!bool) return;

{
"name": "yu-node",
"version": "1.0.2",
"version": "1.0.3",
"description": "仅用于node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc