str-convert
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i str-convert

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

30.7 kB

Total Files

66

Last publish

Collaborators

  • silvandiepen