Nonconformist Propaganda Machine
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

working-directory

0.0.1 • Public • Published

WorkingDirectory

Build Status

WorkingDirectory is a library that allows for simple file manipulation through creating an instance that all of your file operations can be done relative to. Usage

var WorkingDirectory = require('working-directory');
 
var wd = new WorkingDirectory(__dirname);
 
wd.mkdir("someDirectory", function(err, tempdir) {
  if (err) throw err;
 
  tempdir.writeFile("file.txt", "File contents", function(err) {
    if (err) throw err;
 
    console.log("A file has been written in the temporary directory");
  });
});

Notes

This package does not and will not provide the following functionality:

  • Synchronous filesystem access

Keywords

none

install

npm i working-directory

Downloadsweekly downloads

0

version

0.0.1

license

BSD 2-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar