0.0.217 • Published 6 years ago
residence v0.0.217
Residence
Allows you find a root of a project given current working directory (process.cwd()
)
Examples
Looking for the NPM project root, by looking for package.json
import * as residence from 'residence';
const rootPath = residence.findProjectRoot(process.cwd());
// root is either null or a project root path, found by looking for the first package.json file
Looking for a project root, by looking for another file
import * as residence from 'residence';
const rootPath = residence.findRootDir(process.cwd(), '.nlu.json');
// walks up the fs towards '/' and returns the path when it finds the first .nlu.json file
// returns null otherwise.
0.0.217
6 years ago
0.0.216
6 years ago
0.0.215
7 years ago
0.0.214
7 years ago
0.0.213
7 years ago
0.0.212
7 years ago
0.0.211
7 years ago
0.0.210
7 years ago
0.0.209
7 years ago
0.0.208
7 years ago
0.0.207
8 years ago
0.0.206
8 years ago
0.0.205
8 years ago
0.0.204
8 years ago
0.0.203
8 years ago
0.0.202
8 years ago
0.0.201
8 years ago
0.0.1
9 years ago