choose-within-string

1.1.0 • Public • Published

choose-within-string

npm version Build Status

Choose among several values separated by slashes within a string.

Install

$ npm install --save choose-within-string

Usage

var chooseWithinString = require('choose-within-string')
 
chooseWithinString('You just won $1/1,000/1,000,000! Now you are poor/happy/rich!', 2)
// "You just won $1,000,000! Now you are rich!"

License

ISC © Raine Lourie

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i choose-within-string

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • raine