New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

luabundler

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luabundler

Bundles several Lua files into a single file.

latest
Source
npmnpm
Version
1.2.3
Version published
Maintainers
0
Created
Source

luabundler

CLI tool for bundling several Lua files into a single file.

If you're looking for an API, see luabundle

oclif Version Downloads/week License

  • Installation
  • Usage

Installation

npm install -g luabundler

Usage

bundle

The bundle command takes an input Lua file, and recursively collects all the require()d modules and bundles them into a single output bundle.

luabundler bundle input.lua -p "/path/to/lua/?.lua" -o bundle.lua

If you don't specify an output file (-o), the resultant bundle will be printed to your terminal.

Search Paths (-p)

In order to know where to look for required files, you must provide one or more search path patterns.

In addition to allowing you to add directories to search within, the pattern format allows you to configure supported file extensions as well.

For example, it's fairly common practice for Lua scripts written for Tabletop Simulator to use the .ttslua extension:

luabundler bundle input.lua -p "/path/to/lua/?.lua" -p "/path/to/mod/?.ttslua"  -o bundle.lua

Additional Options

Additional bundle options are described with:

luabundler bundle --help

unbundle

The unbundle command takes an input bundle, and splits it up into its original modules.

luabundler unbundle bundle.lua -o original_input.lua -m modules/

You may omit the -m option in order to simply output the root module and ignore all its require()'d dependencies i.e. if you already have them on disk.

Additional Options

Additional unbundle options are described with:

luabundler unbundle --help

Keywords

lua

FAQs

Package last updated on 10 Jul 2024

Did you know?

Socket

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.

Install

Related posts