Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

navd

1.0.1 • Public • Published

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

install

npm i navd

Downloadsweekly downloads

4

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability