JSPM

x-path

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 137115
  • Score
    100M100P100Q150850F
  • License MIT

An extention for native node path module.

Package Exports

  • x-path

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (x-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

x-path

NPM version Build Status Dependency Status Code Climate Coverage Status

An extention for native node path module.

Install

$ npm install --save x-path

Usage

var path = require('x-path');

path.isAbsolutePath(somePath)
path.isRelativePath(somePath)

API

isAbsolutePath

isRelativePath

isRootDirectory

unifyPathSeparate

normalizePathSeparate

isDirectory

isFile

isDirectorySync

isFileSync

And three more come from path-extra

  • tempdir
  • homedir
  • datadir

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using gulp.

License

Copyright (c) 2015 Node X Extras. Licensed under the MIT license.