Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 25, 2024 via pnpm

touch 1.0.0

like touch(1) in node
Package summary
Share
0
issues
2
licenses
2
ISC
1
MIT
Package created
5 Oct 2011
Version published
17 Jul 2015
Maintainers
1
Total deps
3
Direct deps
1
License
ISC

Issues

0
This package has no issues

Licenses

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
abbrev@1.1.1
touch@1.0.0

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
nopt@1.0.10
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of touch 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
nopt1.0.1010 kBMIT
prod

Visualizations

Frequently Asked Questions

What does touch do?

The "touch" is a popular npm package that simulates the Unix built-in function touch(1). Its primary functionality is to modify file timestamps. It provides both synchronous and asynchronous modes, with promise support for the asynchronous functions. Furthermore, touch supports numerous options, providing flexibility for usage.

How do you use touch?

To use "touch" in your project, you first need to install it using the npm install touch command. After successful installation, you can require it in your JavaScript code like this: var touch = require("touch").

Here are some usage examples:

  1. Touch a file asynchronously:
var touch = require("touch")
touch("file.txt", options, function(err) {
    // Handle errors if necessary
})
  1. Touch a file synchronously:
var touch = require("touch")
touch.sync("file.txt", options)

Replace "file.txt" with the name of the file you wish to touch and options with an optional object containing configuration properties. If you provide a callback function with asynchronous mode, it will be attached to the Promise.

Where are the touch docs?

The documentation for the "touch" npm package can be found in the readme file of the GitHub repository node-touch. It provides detailed explanations of the API usage, options you can use, and how to use the CLI (Command Line Interface) tool "nodetouch" that comes with the package.