Socket
Socket
Sign inDemoInstall

dot-case

Package Overview
Dependencies
2
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

dot-case.d.ts

6

dot-case.js

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

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

@@ -11,3 +11,3 @@ /**

module.exports = function (string, locale) {
return sentenceCase(string, locale, '.');
};
return sentenceCase(string, locale, '.')
}
{
"name": "dot-case",
"version": "1.1.1",
"version": "1.1.2",
"description": "Dot case a string",
"main": "dot-case.js",
"typings": "dot-case.d.ts",
"files": [
"dot-case.js",
"dot-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 @@ # Dot Case

```bash
```
npm install dot-case --save

@@ -22,11 +22,15 @@ ```

```javascript
var dotCase = require('dot-case');
var dotCase = require('dot-case')
dotCase('string'); //=> "string"
dotCase('camelCase'); //=> "camel.case"
dotCase('sentence case'); //=> "sentence.case"
dotCase('string') //=> "string"
dotCase('camelCase') //=> "camel.case"
dotCase('sentence case') //=> "sentence.case"
dotCase('MY STRING', 'tr'); //=> "my.strıng"
dotCase('MY STRING', 'tr') //=> "my.strıng"
```
## Typings
Includes a [TypeScript definition](dot-case.d.ts).
## License

@@ -33,0 +37,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc