Skip to content

olabs-org/parser-aa-vars

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

parser-aa-vars

Install

npm install parser-aa-vars

Example

const parser = require('parser-aa-vars');

const definition = {
  messages: [
    {
      if: `{trigger.data.d}`,
      app: 'data',
      payload: `{trigger.data.d}`
    },
    {
      if: `{trigger.data.sub}`,
      app: 'data',
      payload: {
        xx: 66.3,
        sub: `{trigger.data.sub}`
      }
    },
    {
      if: `{trigger.data.output}`,
      app: 'payment',
      payload: {
        asset: "base",
        outputs: [
          `{trigger.data.output}`
        ]
      }
    },
    {
      if: `{trigger.data.payment}`,
      app: 'payment',
      payload: `{trigger.data.payment}`
    },
  ]
};

console.log(parser(definition)); // [ 'd', 'sub', 'output', 'payment' ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published