{"library":"touch","type":"library","category":null,"description":"The `touch` package for Node.js provides a cross-platform implementation of the Unix `touch(1)` command, enabling programmatic modification of file access and modification times, or the creation of new, empty files. Its current stable version is 3.1.1. The package offers both asynchronous (Promise-based and callback-based) and synchronous APIs, including `touch()`, `touch.sync()`, `touch.ftouch()`, and `touch.ftouchSync()`. A key differentiator is its dual API for file path and file descriptor manipulation, alongside a `nodetouch` CLI executable that mirrors the native `touch` utility. Release cadence is not explicitly stated, but the package maintains a stable API and provides consistent functionality across Node.js versions, focusing on reliable file system interaction.","language":"javascript","status":"active","version":"3.1.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install touch","imports":["import touch from 'touch'","const touch = require('touch')","import touch from 'touch'; touch.sync('file.txt')"]},{"cmd":"yarn add touch","imports":[]},{"cmd":"pnpm add touch","imports":[]}],"homepage":null,"github":"https://github.com/isaacs/node-touch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/touch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/touch/compatibility"}}