set of functions for words and phrases handling
Add the package to your projectnpm i hans-spelling
using yarn
yarn add hans-spelling
Export handlers from hans-spelling
const {getSingleForm, getPluralForm} = require('hans-spelling')
using TypeScript
import {getSingleForm, getPluralForm} from 'hans-spelling'
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