Socket
Socket
Sign inDemoInstall

lower-case

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.4 to 2.0.0

dist.es2015/index.d.ts

88

package.json
{
"name": "lower-case",
"version": "1.1.4",
"description": "Lowercase a string",
"main": "lower-case.js",
"typings": "lower-case.d.ts",
"version": "2.0.0",
"description": "Transforms the string to lower case",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"module": "dist.es2015/index.js",
"sideEffects": false,
"jsnext:main": "dist.es2015/index.js",
"files": [
"lower-case.js",
"lower-case.d.ts",
"dist/",
"dist.es2015/",
"LICENSE"
],
"scripts": {
"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"
"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"
},
"standard": {
"ignore": [
"coverage/**",
"node_modules/**",
"bower_components/**"
]
},
"repository": {
"type": "git",
"url": "git://github.com/blakeembrey/lower-case.git"
"url": "git://github.com/blakeembrey/change-case.git"
},
"keywords": [
"cases",
"lower",
"lowercase",
"case"
"case",
"downcase",
"locale",
"convert",
"transform"
],

@@ -42,12 +42,44 @@ "author": {

"bugs": {
"url": "https://github.com/blakeembrey/lower-case/issues"
"url": "https://github.com/blakeembrey/change-case/issues"
},
"homepage": "https://github.com/blakeembrey/lower-case",
"homepage": "https://github.com/blakeembrey/change-case/tree/master/packages/lower-case#readme",
"size-limit": [
{
"path": "dist/index.js",
"limit": "250 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"
},
"devDependencies": {
"istanbul": "^0.3.5",
"mocha": "^2.1.0",
"pre-commit": "^1.0.2",
"standard": "^2.4.5"
"@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": {}
"gitHead": "55911ca17c2e0c964b9b84143e14e29ffc9ff499"
}

@@ -5,9 +5,6 @@ # Lower 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]
Lower case a string.
> Transforms the string to lower case.
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

@@ -22,15 +19,10 @@

```js
var lowerCase = require('lower-case')
import { lowerCase, localeLowerCase } from "lower-case";
lowerCase(null) //=> ""
lowerCase('STRING') //=> "string"
lowerCase('STRING', 'tr') //=> "strıng"
lowerCase("string"); //=> "string"
lowerCase("PascalCase"); //=> "pascalcase"
lowerCase({ toString: function () { return 'TEST' } }) //=> "test"
localeLowerCase("STRING", "tr"); //=> "strıng"
```
## Typings
Includes a [TypeScript definition](lower-case.d.ts).
## License

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

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