font-case-parser

0.0.3 • Public • Published

Font Case

Library to convert string font cases.

Converts a string between Sentense case, camelCase, kebab-case and snake_case, also have some useful string features.

Usage


Basic Conversion

Import any conversion method from font-case package.

import { toKebabCase } from 'font-case';

const someString = 'some text to convert';

const convertedString = toKebabCase(someString);
// some-text-to-convert

API Reference

Method Description
toCamelCase() spaced text to lower camelCase
fromCamelCase() camelCase to spaced text
toKebabCase() spaced text to kebab-case
fromKebabCase() kebab-case to spaced text
toSnakeCase() spaced text to snake_case
fromSnakeCase() snake_case to spaced text
capitalize() Capitalize first letter

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    6
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i font-case-parser

Weekly Downloads

6

Version

0.0.3

License

MIT

Last publish

Collaborators

  • aluis