1.0.0 • Published 3 years ago
hans-spelling v1.0.0
hans-spelling
set of functions for words and phrases handling
Table of contents
Installing Add the package to your project
npm i hans-spelling
using yarn
yarn add hans-spelling
Example
Export handlers from hans-spelling
const {getSingleForm, getPluralForm} = require('hans-spelling')
using TypeScript
import {getSingleForm, getPluralForm} from 'hans-spelling'
Handlers
capitalize('word') // Word
transformPathIntoPhrase('word-path') // Word path
transformPathIntoCamelcase('word-path') // wordPath
reverseString('word') // drow
getSingleForm('words') // word
getSingleForm('entities') // entity
getSingleForm('classes') // class
getPluralForm('word') // words
getPluralForm('entity') // entities
getPluralForm('class') // classes
turnSnakeToCamel('snake_case') // snakeCase
1.0.0
3 years ago