salesforce-flow-visualiser
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Salesforce Flow Visualiser

Utility for parsing Salesforce Flow meta.xml to text-based graphical formats such as mermaid and PlantUML.

Installtion

npm i salesforce-flow-visualiser

Usage

import { parseFlow } from 'salesforce-flow-visualiser';

# Pass in XML string and get back a markdown string that includes mermaid representation of the Salesforce Flow

const mermaidStr = await parseFlow(<YourXMLStr>, 'mermaid', {outputAsMarkdown :true});

Render Language Support

Roadmap / To do

  • Tests... yeah of course
  • Move each language out to it's own file
  • Options... things like conditional wrapping into .md output
  • Lint warnings?
  • Other render engines?

Contributing / Development

Testing

Unit tests

We're using jest.

npm run test

To test locally

  • Build the package (as below)
  • In the salesforce-flow-visualiser directory
npm link
  • In the project dir of the project that is using salesforce-flow-visualiser
npm link salesforce-flow-visualiser

Build

We're using tsup

npm run build

Publishing

Package Sidebar

Install

npm i salesforce-flow-visualiser

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

88.5 kB

Total Files

8

Last publish

Collaborators

  • toddhalfpenny