Socket
Socket
Sign inDemoInstall

dot-case

Package Overview
Dependencies
3
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 3.0.0

dist.es2015/index.d.ts

83

package.json
{
"name": "dot-case",
"version": "2.1.1",
"description": "Dot case a string",
"main": "dot-case.js",
"typings": "dot-case.d.ts",
"version": "3.0.0",
"description": "Transform into a lower case string with a period between words",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"module": "dist.es2015/index.js",
"sideEffects": false,
"jsnext:main": "dist.es2015/index.js",
"files": [
"dot-case.js",
"dot-case.d.ts",
"dist/",
"dist.es2015/",
"LICENSE"
],
"scripts": {
"lint": "standard",
"test-spec": "mocha -- -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail",
"test": "npm run lint && npm run test-cov"
"lint": "tslint \"src/**/*\" --project tsconfig.json",
"build": "rimraf dist/ dist.es2015/ && tsc && tsc -P tsconfig.es2015.json",
"specs": "jest --coverage",
"test": "npm run build && npm run lint && npm run specs && npm run size",
"size": "size-limit",
"prepare": "npm run build"
},
"repository": {
"type": "git",
"url": "git://github.com/blakeembrey/dot-case.git"
"url": "git://github.com/blakeembrey/change-case.git"
},

@@ -25,3 +30,7 @@ "keywords": [

"case",
"period"
"period",
"full",
"stop",
"convert",
"transform"
],

@@ -35,13 +44,47 @@ "author": {

"bugs": {
"url": "https://github.com/blakeembrey/dot-case/issues"
"url": "https://github.com/blakeembrey/change-case/issues"
},
"homepage": "https://github.com/blakeembrey/dot-case",
"homepage": "https://github.com/blakeembrey/change-case/tree/master/packages/dot-case#readme",
"size-limit": [
{
"path": "dist/index.js",
"limit": "350 B"
}
],
"jest": {
"roots": [
"<rootDir>/src/"
],
"transform": {
"\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"no-case": "^3.0.0"
},
"devDependencies": {
"istanbul": "^0.4.3",
"mocha": "^3.0.0",
"standard": "^9.0.1"
"@size-limit/preset-small-lib": "^2.2.1",
"@types/jest": "^24.0.23",
"@types/node": "^12.12.14",
"jest": "^24.9.0",
"rimraf": "^3.0.0",
"ts-jest": "^24.2.0",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-config-standard": "^9.0.0",
"typescript": "^3.7.2"
},
"dependencies": {
"no-case": "^2.2.0"
}
"gitHead": "55911ca17c2e0c964b9b84143e14e29ffc9ff499"
}

@@ -5,9 +5,6 @@ # Dot Case

[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Bundle size][bundlephobia-image]][bundlephobia-url]
Dot case a string.
> Transform into a lower case string with a period between words.
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

@@ -21,16 +18,11 @@

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

@@ -44,5 +36,3 @@

[downloads-url]: https://npmjs.org/package/dot-case
[travis-image]: https://img.shields.io/travis/blakeembrey/dot-case.svg?style=flat
[travis-url]: https://travis-ci.org/blakeembrey/dot-case
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/dot-case.svg?style=flat
[coveralls-url]: https://coveralls.io/r/blakeembrey/dot-case?branch=master
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/dot-case.svg
[bundlephobia-url]: https://bundlephobia.com/result?p=dot-case
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