Actor picture

JavaScript Code to Flowchart

drobnikj/js-code-2-flowchart

Use this to convert Javascript code to flowchart. Act uses https://www.npmjs.com/package/js2flowchart npm package to convert code to flowchart. Types of input: 1. Code as string with contentType 'application/javascript' 2. JSON with attribute crawlerId with contentType 'application/json' (Converts pageFunction from crawler to flowchart) { "crawlerId": "s3jg9zhn0sdx" } 2. JSON with attribute inputCode Output is a SVG file.

You need to have an Apify account with an API token.

  1. To run the actor from your program externally, copy-paste the code below into your program (based on programming language)

  2. Replace <YOUR_API_TOKEN> with your own token (you can find it here)

1
2
3
4
5
6
7
8
const Apify = require('Apify');

Apify.client.setOptions({ token: '<YOUR_API_TOKEN>' });

const run = await Apify.call('drobnikj/js-code-2-flowchart', { });

console.log('Actor finished, here is the output:');
console.dir(run.output);
For further information, check out these resources
  • Modified
  • Last run
  • Used57 times
  • Used by28 users