CoolFace
Apppublic

opusdev/vector-similarity-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
README.md53 linesDownload Raw Back to touch
1# node-touch2 3For all your node touching needs.4 5## Installing6 7```bash8npm install touch9```10 11## CLI Usage:12 13See `man touch`14 15This package exports a binary called `nodetouch` that works mostly16like the unix builtin `touch(1)`.17 18## API Usage:19 20```javascript21var touch = require("touch")22```23 24Gives you the following functions:25 26* `touch(filename, options, cb)`27* `touch.sync(filename, options)`28* `touch.ftouch(fd, options, cb)`29* `touch.ftouchSync(fd, options)`30 31All the `options` objects are optional.32 33All the async functions return a Promise.  If a callback function is34provided, then it's attached to the Promise.35 36## Options37 38* `force` like `touch -f` Boolean39* `time` like `touch -t <date>` Can be a Date object, or any parseable40  Date string, or epoch ms number.41* `atime` like `touch -a` Can be either a Boolean, or a Date.42* `mtime` like `touch -m` Can be either a Boolean, or a Date.43* `ref` like `touch -r <file>` Must be path to a file.44* `nocreate` like `touch -c` Boolean45 46If neither `atime` nor `mtime` are set, then both values are set.  If47one of them is set, then the other is not.48 49## cli50 51This package creates a `nodetouch` command line executable that works52very much like the unix builtin `touch(1)`53