@cuties/path

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @cuties/path

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

14.8 kB

Total Files

32

Last publish

Collaborators

  • guseyn