@cuties/path
v1.1.1
Published
Cutie extension for path module in Node.
Downloads
17
Readme
cutie-path
Cutie extension for path module in Node. It's based on the Async Tree Pattern.
Examples
You can find examples of using this library in the test directory.
Install
npm install @cuties/path
Run test
npm test
Run build
npm run build
Usage
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
|