1.0.1 • Published 6 years ago

@guseyn/cutie-path v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

cutie-path

NPM Version Build Status codecov

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 ObjectAsync/sync callParameters(default value/description)Representation result
Basenamepath.basenamepath, extstring
Dirnamepath.dirnamepathstring
Extnamepath.extnamepathstring
Formatpath.formatpathObjectstring
IsAbsolutepath.isAbsolutepathboolean
JoinedPathspath.join...pathsstring
NamespacedPathpath.toNamespacedPathpathstring
NormalizedPathpath.normalizepathstring
ParsedPathpath.parsepathobject
RelativePathpath.relativefrom, tostring
ResolvedPathpath.resolve...pathsstring