Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

path-case

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-case - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

11

package.json
{
"name": "path-case",
"version": "1.0.1",
"version": "1.1.0",
"description": "Path case a string",
"main": "path-case.js",
"files": [
"path-case.js",
"LICENSE"
],
"scripts": {

@@ -30,7 +34,8 @@ "test": "istanbul cover _mocha -- -R spec"

"istanbul": "^0.3.0",
"mocha": "^1.18.2"
"mocha": "^1.18.2",
"pre-commit": "0.0.9"
},
"dependencies": {
"sentence-case": "^1.0.2"
"sentence-case": "^1.1.1"
}
}

@@ -1,2 +0,2 @@

var sentence = require('sentence-case');
var sentenceCase = require('sentence-case');

@@ -7,6 +7,7 @@ /**

* @param {String} string
* @param {String} [locale]
* @return {String}
*/
module.exports = function (string) {
return sentence(string).replace(/ /g, '/');
module.exports = function (string, locale) {
return sentenceCase(string, locale).replace(/ /g, '/');
};

@@ -6,6 +6,7 @@ # Path Case

[![Test coverage][coveralls-image]][coveralls-url]
[![Gittip][gittip-image]][gittip-url]
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

@@ -25,2 +26,4 @@

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

@@ -38,3 +41,1 @@

[coveralls-url]: https://coveralls.io/r/blakeembrey/path-case?branch=master
[gittip-image]: https://img.shields.io/gittip/blakeembrey.svg?style=flat
[gittip-url]: https://www.gittip.com/blakeembrey
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc