Package Exports
- str-convert
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 (str-convert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
str-convert
A set of tools and function to convert strings, numbers, paths etc.
Install
npm
npm install str-convert --save-devyarn
yarn add str-convertUsage
A single function
import { pascalCase } from 'str-convert';
const convertedString = pascalCase('This string to PascalCase');
// result; ThisStringToPascalcaseall functions
import * as convert from 'str-convert';
const convertedString = convert.pascalCase('This string to PascalCase');
// result; ThisStringToPascalcaseFunctions
Case
lowerCase
Convert string to lowercase
const str = lowerCase('This is a String');
// result; this is a stringpascalCase
Convert string to pascalCase
const str = pascalCase('This is a String');
// result; ThisIsAString