Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zosman1/friendly-word-slug

NPM Package: create friendly word slugs
https://github.com/zosman1/friendly-word-slug

Last synced: 9 days ago
JSON representation

NPM Package: create friendly word slugs

Awesome Lists containing this project

README

        

# Friendly Word Slugs 🐌

Installation: `npm i friendly-word-slug`

Usage:
`randomWords()`

- Returns a random word

`randomWords(number, format)`

> NOTE: Acceptable formats include "camelCase" "snakeCase" and "kebabCase"

- returns `number` random words formatted using the `format` scheme
```
number: how many words to return

format: what format to put them in
```

Example Usage :
```
randomWords()
//goose

randomWords(3, "camelCase")
//gooseAppleCar
```