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

touch

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

touch - npm Package Compare versions

Comparing version 0.0.4 to 1.0.0

.npmignore

1

bin/touch.js

@@ -0,1 +1,2 @@

#!/usr/bin/env node
var touch = require("../touch")

@@ -2,0 +3,0 @@ , fs = require("fs")

10

package.json

@@ -5,3 +5,3 @@ {

"description": "like touch(1) in node",
"version": "0.0.4",
"version": "1.0.0",
"repository": "git://github.com/isaacs/node-touch.git",

@@ -16,3 +16,9 @@ "main": "touch.js",

},
"license": "ISC"
"license": "ISC",
"scripts": {
"test": "tap test/*.js"
},
"devDependencies": {
"tap": "^1.3.1"
}
}

@@ -10,3 +10,3 @@ var fs = require("fs")

touch.ftouch = ftouch
touch.ftouchSync = function (fd, options) {
touch.ftouchSync = ftouch.sync = function (fd, options) {
return ftouch(fd, options)

@@ -23,6 +23,9 @@ }

options.atime = options.mtime = now
} else if (true === options.atime) {
options.atime = now
} else if (true === options.mtime) {
options.mtime = now
} else {
if (true === options.atime) {
options.atime = now
}
if (true === options.mtime) {
options.mtime = now
}
}

@@ -34,2 +37,3 @@

}
if (!options.nocreate) {

@@ -36,0 +40,0 @@ oflags = oflags | cons.O_CREAT

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