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

nyks

Package Overview
Dependencies
Maintainers
1
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nyks - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

fs/mkdirpSync.js

2

package.json
{
"name": "nyks",
"version": "0.8.0",
"version": "0.8.1",
"description": "nodejs exupery style",

@@ -5,0 +5,0 @@ "keywords": [

@@ -52,25 +52,5 @@

fs.tmppath = require('../../fs/tmppath');
fs.mkdirpSync = require('../../fs/mkdirpSync');
fs.tmppath = function(ext){
ext = ext || "tmp";
var abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var rand = (abc + abc + abc ).split("").shuffle().slice(0,8).join("");
var fname = ext + "-" + rand + "." + ext;
var file_path = os.tmpdir() + "/" +fname;
if(fs.existsSync(file_path))
return fs.tmppath(ext);
return file_path;
}
fs.mkdirpSync = function(file_path){
if( fs.existsSync(file_path) )
return file_path;
fs.mkdirpSync(path.dirname(file_path));
fs.mkdirSync(file_path);
return file_path;
}
fs.deleteFolderRecursive = function(file_path) {

@@ -77,0 +57,0 @@ var files = [];

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