JSPM

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

Path case a string

Package Exports

  • path-case

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 (path-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Path Case

NPM version NPM downloads Build status Test coverage

Path case a string.

Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will result in an empty string.

Installation

npm install path-case --save

Usage

var pathCase = require('path-case')

pathCase('string')        //=> "string"
pathCase('camelCase')     //=> "camel/case"
pathCase('sentence case') //=> "sentence/case"

pathCase('MY STRING', 'tr') //=> "my.strıng"

Typings

Includes a TypeScript definition.

License

MIT