1.0.1 • Published 7 years ago

navd v1.0.1

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

navd

Navigate through directories easily.

Installation

npm install navd --save

Usage

const fs = require("fs");
const navd = require("navd");

// ../../../../../../../../file.txt
fs.readFile(navd.up(8, "file.txt"), "utf8", (err, data) => {
    // Code here
});

// ../../../../../../../../folder/file.txt
fs.readFile(navd.up(8, "folder/file.txt"), "utf8", (err, data) => {
    // Code here
});

Tests

npm test

License

MIT

1.0.1

7 years ago

1.0.0

7 years ago