Skip to content
Navigate through directories easily.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.txt
README.md
index.js
package.json
test.js

README.md

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.