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

snake-case

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snake-case - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

snake-case.d.ts

12

package.json
{
"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, '_')
}
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