{"id":15828745,"url":"https://github.com/jesselpalmer/basic","last_synced_at":"2026-01-20T21:33:37.633Z","repository":{"id":42031842,"uuid":"60777678","full_name":"jesselpalmer/BASIC","owner":"jesselpalmer","description":"BASIC interpreter","archived":false,"fork":false,"pushed_at":"2023-11-12T21:18:17.000Z","size":1393,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-06T10:42:01.204Z","etag":null,"topics":["basic","basic-interpreter","basic-lang","basic-language","interpreter"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/node-basic-lang","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jesselpalmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jesselpalmer"}},"created_at":"2016-06-09T13:40:00.000Z","updated_at":"2024-01-12T18:08:23.000Z","dependencies_parsed_at":"2023-01-30T06:01:13.471Z","dependency_job_id":"1d0aa20f-fd57-4435-a0e2-40b99a0fa2a8","html_url":"https://github.com/jesselpalmer/BASIC","commit_stats":{"total_commits":184,"total_committers":2,"mean_commits":92.0,"dds":"0.016304347826086918","last_synced_commit":"3c8b71f170b758679cde85e5901827de9d4fa077"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesselpalmer%2FBASIC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesselpalmer%2FBASIC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesselpalmer%2FBASIC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesselpalmer%2FBASIC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jesselpalmer","download_url":"https://codeload.github.com/jesselpalmer/BASIC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640557,"owners_count":20971555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basic","basic-interpreter","basic-lang","basic-language","interpreter"],"created_at":"2024-10-05T10:42:11.166Z","updated_at":"2026-01-20T21:33:37.627Z","avatar_url":"https://github.com/jesselpalmer.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jesselpalmer"],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/dw/node-basic-lang.svg)](https://www.npmjs.com/package/node-basic-lang) [![Node.js CI](https://github.com/jesselpalmer/BASIC/actions/workflows/node.js.yml/badge.svg)](https://github.com/jesselpalmer/BASIC/actions/workflows/node.js.yml)\n\n# BASIC\n\nBASIC interpreter\n\n## Installation\n\n1. You need to have at least version`v14.0.0` of [node.js](https://nodejs.org/en/) installed.\n\n2. Install the `node-basic-lang` library globally:\n\n```bash\nnpm install -g node-basic-lang\n```\n\n## Executing files\n\n1. Create a BASIC program using the [supported commands](#supported-commands) below. Make sure that the file ends in `.bas`.\n\n2. Run the BASIC program that you created\n\n```bash\nbasic \u003cprogram name\u003e.bas\n```\n\nExample:\n\n```bash\nbasic game.bas\n```\n\n## Using the REPL\n\nYou can use the REPL just by running the following command in the terminal:\n\n ```bash\nbasic\n ```\n\nMake sure that you enter a unique line number for each command, just like you would a normal file. See [supported commands](#supported-commands) below for a list of commands you can use.\n\n## Supported commands\n\n`ABS` - Prints out the absolute value of a number.  \n`CLS` - Clears the console.  \n`INT` - Prints out an integer by rounding any decimal number down.  \n`PRINT` - Prints lines to the console.  \n`REM` - Comments for the user. The interpreter ignores these lines.  \n`END` - Exits the program.\n\n## Sample file\n\n```bas\n10 CLS\n20 REM \"BASIC HELLO WORLD PROGRAM\"\n30 PRINT \"HELLO WORLD\"\n40 PRINT \"HELLO WORLD 2X\"\n50 PRINT \"HELLO WORLD 3X\"\n60 ABS \"-3.14\"\n70 INT \"1.6180\"\n80 END\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesselpalmer%2Fbasic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesselpalmer%2Fbasic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesselpalmer%2Fbasic/lists"}