Cutie extension for path module in Node. It's based on the Async Tree Pattern.
You can find examples of using this library in the test directory.
npm install @cuties/path
npm test
npm run build
const {
// Needed async objects here from the table below
} = require('@cuties/path');For more information about parameters in the async objects visit docs of Node for path module.
| Async Object | Async/sync call | Parameters(default value/description) | Representation result |
|---|---|---|---|
Basename |
path.basename |
path, ext |
string |
Dirname |
path.dirname |
path |
string |
Extname |
path.extname |
path |
string |
Format |
path.format |
pathObject |
string |
IsAbsolute |
path.isAbsolute |
path |
boolean |
JoinedPaths |
path.join |
...paths |
string |
NamespacedPath |
path.toNamespacedPath |
path |
string |
NormalizedPath |
path.normalize |
path |
string |
ParsedPath |
path.parse |
path |
object |
RelativePath |
path.relative |
from, to |
string |
ResolvedPath |
path.resolve |
...paths |
string |