Skip to content

Cuel/ace3-functions-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ace3-functions-reader

Parses ACE3 addons folders and functions files for documentation

Can return only comments or entire function files, with function names resolved

Usage

var ace3reader = require('ace3-functions-reader')
let ace3RootDir = 'C:/ace3'
ace3reader.getFunctions(ace3RootDir, function (e, functions) {
  console.log(functions)
})

Options

Second argument

{
  onlyComments: false // default true
}

Output

Example:

{
  "component_name": [
    {
      "name": "ACE_component_fnc_function",
      "text": "Entire file or only comments",
      "file": "component/functions/fn_function.sqf"
    }
  ],
  "component_name2": [
    {
      "name": "ACE_component2_fnc_function",
      "text": "Entire file or only comments",
      "file": "component2/functions/fn_function.sqf"
    }
  ]
}

License

ISC

About

Parses ACE3 addons folder and functions for documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published