JSPM

str-convert

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

Convert Strings

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