{"library":"muffin-js","title":"MuffinJS","description":"MuffinJS v1.1.2 is a transpiler and runtime for the Muffin scripting language, designed to compile and execute Muffin scripts on Node.js. It offers a simple alternative to JavaScript with custom syntax for variables, loops, conditions, and functions, and supports including external scripts and libraries. Unlike general-purpose languages, it focuses on ease of use with automatic disk persistence for variables and built-in I/O abstraction. Release cadence is low; the project appears in maintenance mode with limited recent updates.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install muffin-js"],"cli":{"name":"muffin","version":null}},"imports":["const muffin = require('muffin');","const prompt = (data) => readline.question(chalk.green(data.toUpperCase()) + chalk.green('\\n\\nINPUT> '));","const confirm = (...rest) => { console.clear(); console.log(...rest.map(e => chalk.green(e.toString().toUpperCase()))); readline.question(chalk.green('\\nPRESS ENTER> ')); return true; };","const localStorage = { getItem: (name) => { ... }, setItem: (name, value) => { ... }, clear: () => { ... } };"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install globally or locally: npm i muffin-js\n// Create a Muffin script file: hello.muffin\n// Write: print \"Hello, Muffin!\"\n// Compile and run: muffin hello.muffin\n\n// Alternatively, use programmatically:\nconst muffin = require('muffin');\nconst my_code = 'print \"Hello, World!\"';\nconst output = muffin(my_code);\neval(output); // EVAL IS EVIL - ensure prompt, confirm, localStorage are defined","lang":"javascript","description":"Shows how to compile and run a Muffin script via CLI and programmatically, highlighting the need for external dependencies.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}