1.0.0 • Published 3 years ago

expressivestrings v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

EXPRESSIVE

Expressive is a npm package which generates meaningful strings from any input. It guarantees that same inputs always produce same outputs.

Getting Started

Installation

$ npm install meaningful-string

Example

const expressive = require('expressive')
console.log('Meaningful string: ', expressive.expressify('an example string'))

Output

Meaningful string: Second-hand Millipede

Usage

Prototype

function expressify(string: String, options: Object)

There are many options you can pass:

  • 'case': Case of the result text, it can be one of 'lower', 'upper', 'title', 'camel', 'snake'. Default value is 'title'.
  • 'separator': Word separator of result text, you can pass any value you want. Default value is ' '.