JSPM

transform-string

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q25259F
  • License MIT

Transform any string using properties CSS like

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 Build Status

Transform any string using properties CSS like

Install

$ npm install transform-string

Usage

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:

  • title
  • capitalize
  • lowercase
  • uppercase

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

License

MIT © Abraham Hernandez