Skip to content

Guseyn/cutie-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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

About

Cutie extension for path module in Node.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors