Skip to content

Library to implement variable interpolation feature of Lolo Code. Common dependency in both lolo-engine and Lolo Code API. Replaces an interpolation expression in one value with data from another value.

Notifications You must be signed in to change notification settings

lolocompany/lolo-interpolate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lolo-interpolate

Library to implement variable interpolation feature of Lolo Code. Common dependency in both lolo-engine and Lolo Code API. Replaces an interpolation expression in one value with data from another value.

E.g. given

interpolate(
  {"event": { "bar": 42 } },     // data value
  { "foo": "hello {event.bar}" } // interpolated value
)

the result would be

{ "foo": "hello 42" }            // '{event.bar}' replaced with 42

About

Library to implement variable interpolation feature of Lolo Code. Common dependency in both lolo-engine and Lolo Code API. Replaces an interpolation expression in one value with data from another value.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published