0.0.1 • Published 5 years ago
str-convert v0.0.1
str-convert
A set of tools and function to convert strings, numbers, paths etc.
Install
npm
npm install str-convert --save-dev
yarn
yarn add str-convert
Usage
A single function
import { pascalCase } from 'str-convert';
const convertedString = pascalCase('This string to PascalCase');
// result; ThisStringToPascalcase
all functions
import * as convert from 'str-convert';
const convertedString = convert.pascalCase('This string to PascalCase');
// result; ThisStringToPascalcase
Functions
Case
lowerCase
Convert string to lowercase
const str = lowerCase('This is a String');
// result; this is a string
pascalCase
Convert string to pascalCase
const str = pascalCase('This is a String');
// result; ThisIsAString
0.0.1
5 years ago