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

timodify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timodify - npm Package Compare versions

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"
}
}
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