Package Exports
- capitalize
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (capitalize) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
capitalize
Capitalize the first letter of a string, or all words in a string.
Synopsis
Capitalize the first letter of a string:
var capitalize = require('./')
var test = require('tape')
test('Capitalize first letter', function (t) {
t.plan(1)
t.equal(capitalize("united states"), "United states")
})Or capitalize each word in a string:
test('Capitalize each word', function (t) {
t.plan(1)
t.equal(capitalize.words("united states"), "United States")
})Install
npm install capitalizeLicense
MIT