cleaner-node
Advanced tools
Comparing version 0.3.7 to 0.3.8
{ | ||
"name": "cleaner-node", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const fs = require('fs'); | ||
const path = require('path'); | ||
const stats = itemPath => { | ||
const getStats = itemPath => { | ||
try { | ||
@@ -13,7 +13,7 @@ const stats = fs.lstatSync(itemPath); | ||
const isFile = itemPath => { | ||
const stats = stats(itemPath); | ||
const stats = getStats(itemPath); | ||
return stats && stats.isFile(); | ||
} | ||
const isFolder = itemPath => { | ||
const stats = stats(itemPath); | ||
const stats = getStats(itemPath); | ||
return stats && stats.isFolder; | ||
@@ -53,3 +53,3 @@ } | ||
module.exports = { | ||
stats, | ||
getStats, | ||
isFile, | ||
@@ -56,0 +56,0 @@ isFolder, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47894