Skip to content
Lowercase a string in JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml Add coveralls Aug 17, 2014
LICENSE
README.md Update dependencies to enable Greenkeeper 🌴 (#6) May 6, 2017
lower-case.d.ts
lower-case.js
package.json
test.js

README.md

Lower Case

NPM version NPM downloads Build status Test coverage Greenkeeper badge

Lower case a string.

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

npm install lower-case --save

Usage

var lowerCase = require('lower-case')

lowerCase(null)           //=> ""
lowerCase('STRING')       //=> "string"
lowerCase('STRING', 'tr') //=> "strıng"

lowerCase({ toString: function () { return 'TEST' } }) //=> "test"

Typings

Includes a TypeScript definition.

License

MIT

You can’t perform that action at this time.