Utility library for dealing with temporary directories and watching for file changes and doing things like mirror synchronization from a remote SSH host using Rsync
Install with npm
$ npm i use-workspaces --save
var workspaces = require('use-workspaces');
var workspace = workspaces.createWorkspace();
console.log(`hello world from ${workspace.workspaceName}!`, workspace);
var dummies = workspace.createSubdirectory('dummies');
dummies.createFile('foo.txt', 'foo');
dummies.appendFile('foo.txt', 'bar');
dummies.appendLine('foo.txt', 'foobar');
workspace.trashWorkspace();
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
LordSequoia
Copyright © 2022 LordSequoia Licensed under the MIT license.
This file was generated by readme-generator on July 16, 2022.