
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
lua-doc-extractor
Advanced tools
Extracts lua documentation from C-style comments.
$ npm install -g lua-doc-extractor
Process files:
$ lua-doc-extractor some-file.cpp other-files/*.cpp --dest output
Show usage:
$ lua-doc-extractor --help
To add GitHub source links to the exported library. Provide the --repo argument.
$ lua-doc-extractor **/*.cpp --dest library --repo https://github.com/beyond-all-reason/spring/blob/62ee0b4/
Annotate your using lua language server annotations in document comment blocks (/*** <docs> */).
Custom tags are required to generate Lua meta code.
@global <name> <type>Defines a global variable with a given type.
@function <name>Outputs the definition of a function.
@table <name>Defines a global table. Add fields to the table using @field name type [description].
/***
* Main API
* @table Api
* @field Version integer
*/
/***
* The absolute path to the executable.
* @global ExecutablePath string
*/
/***
* @enum NameType
* @field FirstName 1
* @field LastName 2
* @field FullName 3
*/
/***
* Get name by ID
* @function Api.GetName
* @param id integer The integer of the person.
* @param nameType NameType Which name to return.
* @return string name The full or first name of the person.
*/
int SomeClass::GetName(lua_State *L)
{
Generates:
---@meta
---Main API
Api = {
---@type integer
Version = nil
}
---The absolute path to the executable.
---@type string
ExectablePath = nil
---@enum NameType
NameType = {
FirstName = 1,
LastName = 2,
FullName = 3
}
---Get name by ID
---
---@param id integer The integer of the person.
---@param nameType NameType Which name to return.
---@return string name The full or first name of the person.
function Api.GetName(id, nameType) end
PRs accepted.
MIT
FAQs
Extracts lua documentation from C-style comments
The npm package lua-doc-extractor receives a total of 17 weekly downloads. As such, lua-doc-extractor popularity was classified as not popular.
We found that lua-doc-extractor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.