FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Spintax

v1.5.4 Public

This module is a helper class to process Spintax strings.

{Hello|Howdy|Hola} to you, {Mr.|Mrs.|Ms.} {Smith|Williams|Davis}

Usage

var spintax = getModel('[email protected]');
var strData = "{Hello|Howdy|Hola} to you, {Mr.|Mrs.|Ms.} {Smith|Williams|Davis}!";

var spinned = spintax.spin(strData);

This code will output a random spun string generated:

Hola to you, Ms. Williams!

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
1.5.4 May 30 2017 06:50 PM May 30 2017 06:50 PM
Version History
1.5.3 May 30 2017 01:40 AM May 30 2017 01:40 AM
1.5.2 May 30 2017 01:19 AM May 30 2017 01:19 AM
1.5.0 May 30 2017 01:03 AM May 30 2017 01:03 AM
1.4.0 May 29 2017 10:43 AM May 29 2017 10:43 AM
1.3.0 May 29 2017 10:42 AM May 29 2017 10:42 AM
1.2.0 May 29 2017 10:41 AM May 29 2017 10:41 AM
1.1.0 May 29 2017 10:39 AM May 29 2017 10:39 AM

 

No collaborators yet.
     
  • May 29 2017 10:39 AM
  • May 30 2017 06:50 PM
  • 663
  • 0
  • 0