node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

c2-addon-parser

Construct 2 Addon parser NPM version

A module to extract ACE table of a plugin

Sponsor

Installation

$ npm i -g c2-addon-parser
$ npm i -S c2-addon-parser

Usage

The plugin can used from both node script or cli

API

var ap = require('c2-addon-parser');
var ace = ap.export("addon folder", "html/markdown/json");
 
var type = ap.getType("addon folder");

CLI

// regular export
acetable -d addon_folder -e export_type
 
// export and write file to the addon directory
acetable -d addon_folder -e export_type -o table.md
 
// use -t to only get the type of the addon
acetable -t -d addon_folder

Available export

  • JSON
  • HTML
  • Markdown

Addon support

  • Behaviour
  • Plugin

Coming

  • Effects

License

MIT © Armaldio