1.1.0 • Published 2 years ago

use-workspaces v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

Node.js Package

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.