use-workspaces
v1.1.0
Published
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
Downloads
2
Readme
use-workspaces
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
Install with npm
$ npm i use-workspaces --save
Usage
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();
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
LordSequoia
License
Copyright © 2022 LordSequoia Licensed under the MIT license.
This file was generated by readme-generator on July 16, 2022.