1.0.4 • Published 7 years ago
gedi-paths v1.0.4
Gedi Paths
A convenience library for working with gedi paths.
var paths = require('gedi-paths');
paths.create(number/string/array);
// Create a valid gedi path from a string/number, or an array of strings/numbers.
paths.isAbsolute(path);
// Checks if a path is absolute (basically, starts with '/'
paths.isRoot(path);
// Checks if a path is equivilent to '[]'
paths.append(path1, path2, ... pathN);
// Adds paths together to form an unresolved path,
// eg, paths.append('[stuff]', '[/things]', '[../majigger]');
// would result in [stuff//things/../majigger], an unresolved, invalid path.
paths.toParts(path);
// Breaks a path into an array of path parts/keys.
paths.createRoot();
// Returns a root path ('[/]')
paths.resolve(path1, path2, ... pathN);
// Resolves an invalid path to a valid one,
// eg: paths.resolve('[stuff//things/../majigger]')
// would result in '[/majigger]'
1.0.4
7 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.4.12
10 years ago
0.4.11
10 years ago
0.4.10
10 years ago
0.4.9
10 years ago
0.4.8
10 years ago
0.4.7
10 years ago
0.4.6
10 years ago
0.4.5
10 years ago
0.4.4
10 years ago
0.4.3
10 years ago
0.4.2
10 years ago
0.4.1
10 years ago
0.4.0
10 years ago
0.3.0
10 years ago
0.2.0
10 years ago
0.1.3
10 years ago
0.1.2
11 years ago
0.1.1
11 years ago
0.1.0
11 years ago