Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

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

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

About

πŸ“ Navigate through directories easily

Topics

Resources

License

Packages

No packages published