Package Exports
- transform-string
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 (transform-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
transform-string 
Transform any string using properties CSS like
Install
$ npm install transform-stringUsage
const transformString = ('transform-string');
transformString('unicorns');
//=> 'Unicorns'
transformString.capitalize('hello world');
//=> 'Hello World'or
import transformString, { capitalize } from 'transform-string';
transformString('unicorns');
//=> 'Unicorns'
capitalize('hello world');
//=> 'Hello World'API
transformString(input, [options])
input
Type: string
The input to be transformed
options
Type: object
type
Type: string
Default: title
String transform type.
Types:
titlecapitalizelowercaseuppercase
title(input)
input
Type: string
Capitalizes first letter of string
capitalize(input)
input
Type: string
Capitalizes first letter of each word in string
lowercase(input)
input
Type: string
Converts all to lowercase
uppercase(input)
input
Type: string
Converts all to uppercase
Related
- capitalize-first-letters Capitalizes first letters of each word in string
License
MIT © Abraham Hernandez