New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

picomoon

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picomoon

Compile .lua/.js/.moon to .p8

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

:crescent_moon: Picomoon

Compile Lua, Javascript, or Moonscript to .p8 carts on-the-fly!

demo

Installation

npm i -g picomoon

Dependencies

You'll need some binaries available in your $PATH if you want to compile from languages other than Lua:

Moonscript: moonc

Javascript: castl

Usage

Usage: picomoon [options] <file ...>

Options:

-h, --help             output usage information
-V, --version          output the version number
-l, --language [name]  Input file language. defaults to "lua"
-x, --root [path]      Path to pico-8 carts. defaults to "~/Library/Application Support/pico-8/carts"
-o, --output [file]    Write output to file
-p, --print            Write output to std out
-w, --watch            Watch file
-r, --reload           Reload PICO-8 after write

Examples

Compile a .lua file to a .p8 cart with the same name:

picomoon my_cart.lua

Compile a .lua file to a .p8 cart with a different name:

picomoon -o my_cart2 my_cart.lua

Compile a .moon file to a .p8 cart:

picomoon -l moonscript my_cart.moon

Compile and watch a .js file for changes and auto-reload the compiled cart in pico-8:

picomoon -wrl javascript my_cart.js

Compile and print output to stdout:

picomoon -p my_cart.lua

FAQs

Package last updated on 19 Mar 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc