Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

WorkingDirectory

License NPM Version Tag Version 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

About

A library that allows for simpler file manipulation relative to a directory

Resources

License

Packages

No packages published
You can’t perform that action at this time.