Comparing version 1.0.0 to 1.0.1
31
index.js
#!/usr/bin/env node | ||
const fs = require('fs'); | ||
const Utimes = require('@ronomon/utimes') | ||
const argv = require('minimist')(process.argv.slice(2)) | ||
@@ -8,2 +9,4 @@ | ||
let DEV = true; | ||
(()=>{ | ||
@@ -25,10 +28,24 @@ if (typeof t !='boolean' && !!t) { | ||
if (DEV) { | ||
fixTime = fixTime.getTime() | ||
} | ||
if (file.indexOf('.')>0) { | ||
fs.utimes(root + file, fixTime, fixTime,(err)=>{ | ||
if (err) { | ||
console.log(err); | ||
}else{ | ||
console.log(file+' 创建时间修改成功'); | ||
} | ||
}) | ||
if (DEV){ | ||
Utimes.utimes(root + file, fixTime,fixTime, fixTime, (err) => { | ||
if (err) { | ||
console.log(err); | ||
} else { | ||
console.log(file + ' 创建时间修改成功'); | ||
} | ||
}) | ||
}else{ | ||
fs.utimes(root + file, fixTime, fixTime,(err)=>{ | ||
if (err) { | ||
console.log(err); | ||
}else{ | ||
console.log(file+' 创建时间修改成功'); | ||
} | ||
}) | ||
} | ||
} | ||
@@ -35,0 +52,0 @@ }) |
{ | ||
"name": "timodify", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -15,4 +15,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@ronomon/utimes": "^2.3.1", | ||
"minimist": "^1.2.5" | ||
} | ||
} |
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
1584
46
2
+ Added@ronomon/utimes@^2.3.1
+ Added@ronomon/queue@3.0.1(transitive)
+ Added@ronomon/utimes@2.3.1(transitive)
+ Addednan@2.22.0(transitive)