How to use the touch.ftouch function in touch

To help you get started, we’ve selected a few touch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / touch / touch-tests.ts View on Github external
opts.mtime = boolVal;
opts.mtime = dateVal;

opts.ref = strVal;

opts.nocreate = boolVal;

// touch API tests
touch(strVal, (e) => console.log(e));
touch(strVal, opts, (e) => console.log(e));

touch.sync(strVal);
touch.sync(strVal, opts);

// ftouch API tests
touch.ftouch(numVal, (e) => console.log(e));
touch.ftouch(numVal, opts, (e) => console.log(e));

touch.ftouch.sync(numVal);
touch.ftouch.sync(numVal, opts);

touch.ftouchSync(numVal);
touch.ftouchSync(numVal, opts);
github DefinitelyTyped / DefinitelyTyped / types / touch / touch-tests.ts View on Github external
opts.mtime = dateVal;

opts.ref = strVal;

opts.nocreate = boolVal;

// touch API tests
touch(strVal, (e) => console.log(e));
touch(strVal, opts, (e) => console.log(e));

touch.sync(strVal);
touch.sync(strVal, opts);

// ftouch API tests
touch.ftouch(numVal, (e) => console.log(e));
touch.ftouch(numVal, opts, (e) => console.log(e));

touch.ftouch.sync(numVal);
touch.ftouch.sync(numVal, opts);

touch.ftouchSync(numVal);
touch.ftouchSync(numVal, opts);

touch

like touch(1) in node

ISC
Latest version published 7 months ago

Package Health Score

73 / 100
Full package analysis