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

fs-kit

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-kit - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4

22

lib/fs.js

@@ -84,5 +84,5 @@ /*

return new Promise( ( resolve , reject ) => {
tmp.file( options , ( error , path_ , fd , cleanupCallback ) => {
tmp.file( options , ( error , filePath , fd , cleanupCallback ) => {
if ( error ) { reject( error ) ; }
else { resolve( { fd , path: path_ , cleanup: cleanupCallback } ) ; }
else { resolve( { fd , path: filePath , cleanup: cleanupCallback } ) ; }
} ) ;

@@ -102,5 +102,5 @@ } ) ;

return new Promise( ( resolve , reject ) => {
tmp.dir( options , ( error , path_ , cleanupCallback ) => {
tmp.dir( options , ( error , filePath , cleanupCallback ) => {
if ( error ) { reject( error ) ; }
else { resolve( { path: path_ , cleanup: cleanupCallback } ) ; }
else { resolve( { path: filePath , cleanup: cleanupCallback } ) ; }
} ) ;

@@ -233,5 +233,5 @@ } ) ;

// A small utility function return true if the path exists AND is a directory
fsKit.isDir = fsKit.isDirectory = async ( path_ ) => {
fsKit.isDir = fsKit.isDirectory = async ( filePath ) => {
try {
var stats = await fs.promises.stat( path_ ) ;
var stats = await fs.promises.stat( filePath ) ;
}

@@ -248,5 +248,5 @@ catch ( error ) {

// A small utility function return true if the path exists AND is a file (not a directory)
fsKit.isFile = async ( path_ ) => {
fsKit.isFile = async ( filePath ) => {
try {
var stats = await fs.promises.stat( path_ ) ;
var stats = await fs.promises.stat( filePath ) ;
}

@@ -263,5 +263,5 @@ catch ( error ) {

// A small utility function return true if the path exists AND is a file (not a directory) AND has exe permission (LINUX ONLY)
fsKit.isExe = async ( path_ ) => {
fsKit.isExe = async ( filePath ) => {
try {
var stats = await fs.promises.stat( path_ ) ;
var stats = await fs.promises.stat( filePath ) ;
}

@@ -272,3 +272,3 @@ catch ( error ) {

return stats.isFile() && fsKit.statsHasExe( stats ) ;
return stats.isFile() && fsKit._isExe( stats , filePath ) ;
} ;

@@ -275,0 +275,0 @@

{
"name": "fs-kit",
"version": "0.6.3",
"version": "0.6.4",
"description": "A Filesystem toolbox.",

@@ -5,0 +5,0 @@ "main": "lib/fs.js",

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