Skip to content

zap8600/js-f0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-f0

JavaScript... on the Flipper Zero?

Notice

I'll be returning from my break. Development will be slow, as I have other priorities, but with the amount of interest being shown, I'd feel bad for not putting in work.

How?

This is all possible using the microvium JavaScript engine. Check it out!

Installation

Download the artifact from the most recent successful action and put it in /ext/apps on your Flipper Zero.

Usage

  1. Install microvium on your computer with npm install -g microvium.
  2. Create a new script with the following contents:
// script.mvm.js
console.log = vmImport(7);
function main() {
  console.log('Hello, World!');
}
vmExport(1, main);
  1. Compile it with microvium script.mvm.js. This will make a file in the same directory called script.mvm-bc.
  2. Copy script.mvm-bc to /ext/apps_data/js on your Flipper Zero.
  3. Run JavaScript on your Flipper Zero.
  4. Press the center button to open the console and find "Hello, world!" in the log!

Fully implemented standard functions

  • console.log()
  • console.warn()
  • console.clear()

Incomplete implemented standard functions

  • fs.openSync() - Untested

Currently WIP standard functions

  • confirm()

About

JavaScript on the Flipper Zero

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages