Giter Site home page Giter Site logo

js-f0's Introduction

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()

js-f0's People

Contributors

zap8600 avatar grugnoymeme avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.