snake-case
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "snake-case", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Snake case a string", | ||
"main": "snake-case.js", | ||
"typings": "snake-case.d.ts", | ||
"files": [ | ||
"snake-case.js", | ||
"snake-case.d.ts", | ||
"LICENSE" | ||
], | ||
"scripts": { | ||
"test": "istanbul cover _mocha -- -R spec" | ||
"lint": "standard", | ||
"test-std": "mocha -- -R spec --bail", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail", | ||
"test": "npm run lint && npm run test-cov" | ||
}, | ||
@@ -35,3 +40,4 @@ "repository": { | ||
"mocha": "^2.1.0", | ||
"pre-commit": "^1.0.1" | ||
"pre-commit": "^1.0.1", | ||
"standard": "^3.3.0" | ||
}, | ||
@@ -38,0 +44,0 @@ "dependencies": { |
@@ -14,3 +14,3 @@ # Snake Case | ||
```bash | ||
``` | ||
npm install snake-case --save | ||
@@ -22,11 +22,15 @@ ``` | ||
```javascript | ||
var snakeCase = require('snake-case'); | ||
var snakeCase = require('snake-case') | ||
snakeCase('string'); //=> "string" | ||
snakeCase('camelCase'); //=> "camel_case" | ||
snakeCase('sentence case'); //=> "sentence_case" | ||
snakeCase('string') //=> "string" | ||
snakeCase('camelCase') //=> "camel_case" | ||
snakeCase('sentence case') //=> "sentence_case" | ||
snakeCase('MY STRING', 'tr'); //=> "my_strıng" | ||
snakeCase('MY STRING', 'tr') //=> "my_strıng" | ||
``` | ||
## Typings | ||
Includes a [TypeScript definition](snake-case.d.ts). | ||
## License | ||
@@ -33,0 +37,0 @@ |
@@ -1,2 +0,2 @@ | ||
var sentenceCase = require('sentence-case'); | ||
var sentenceCase = require('sentence-case') | ||
@@ -11,3 +11,3 @@ /** | ||
module.exports = function (str, locale) { | ||
return sentenceCase(str, locale, '_'); | ||
}; | ||
return sentenceCase(str, locale, '_') | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3861
5
13
46
4