Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

hans-spelling

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hans-spelling

set of functions for words and phrases handling

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

hans-spelling

set of functions for words and phrases handling

Table of contents

  • Installing
  • Example
  • Handlers

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

Keywords

spelling

FAQs

Package last updated on 13 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts