Skip to content

wll8/luart-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luart-node

Facilitates interaction between luart and nodejs by extracting files from https://github.com/samyeyo/LuaRT/releases/ and packaging them as an npm package.

Usage

Install like any other npm package, e.g., npm i -g luart-node.

After installation, the following commands are available:

  • luart-node -- utility
  • luart -- for running command-line programs
  • wluart -- for running windowed programs
  • rtc -- for compiling programs

If you need to configure the bin directory in environment variables, its location is node_modules/luart-node/luaRT/bin/.

For programmatic invocation:

// npm i luart-node
const { getPath } = require(`luart-node`)
getPath(`rtc`) // Pass in the command, returns the file path

Command line:

$ luart-node <v|version>
  Show version.
$ luart-node <gen> [vscode]
  Generate vscode configuration.
$ luart-node <c|compile> <path>
  Compile into an exe with all dependencies introduced.

Development

:: Install dependencies
pnpm i

:: Development
pnpm dev

:: Build
pnpm build

:: Test
pnpm test

:: Generate npm package
pnpm pack

About

Make luart easy to interact with nodejs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published