Skip to content

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

License

Notifications You must be signed in to change notification settings

lordsequoia/workspaces

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published