{"id":15651548,"url":"https://github.com/angrykoala/chuckscript","last_synced_at":"2025-04-30T19:48:03.961Z","repository":{"id":57198615,"uuid":"52734245","full_name":"angrykoala/chuckscript","owner":"angrykoala","description":"Chuck Norris Programming Language","archived":false,"fork":false,"pushed_at":"2016-08-03T22:04:19.000Z","size":15,"stargazers_count":33,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T19:23:09.171Z","etag":null,"topics":["chuck-norris","esoteric-language","javascript","language","npm-package"],"latest_commit_sha":null,"homepage":"","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/angrykoala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-28T17:43:16.000Z","updated_at":"2024-10-12T15:20:20.000Z","dependencies_parsed_at":"2022-09-16T14:10:24.179Z","dependency_job_id":null,"html_url":"https://github.com/angrykoala/chuckscript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrykoala%2Fchuckscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrykoala%2Fchuckscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrykoala%2Fchuckscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrykoala%2Fchuckscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angrykoala","download_url":"https://codeload.github.com/angrykoala/chuckscript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251774006,"owners_count":21641719,"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":["chuck-norris","esoteric-language","javascript","language","npm-package"],"created_at":"2024-10-03T12:38:57.164Z","updated_at":"2025-04-30T19:48:03.940Z","avatar_url":"https://github.com/angrykoala.png","language":"JavaScript","funding_links":[],"categories":["Esolangs","Languages"],"sub_categories":[],"readme":"Chuck Norris Programming Language\n=================================\n_by @angrykoala_     \n\n[![npm version](https://badge.fury.io/js/chuckscript.svg)](https://badge.fury.io/js/chuckscript)\n[![bitHound Overall Score](https://www.bithound.io/github/angrykoala/chuckscript/badges/score.svg)](https://www.bithound.io/github/angrykoala/chuckscript)\n[![bitHound Dependencies](https://www.bithound.io/github/angrykoala/chuckscript/badges/dependencies.svg)](https://www.bithound.io/github/angrykoala/chuckscript/master/dependencies/npm)\n\n\nChuck Norris can code using binary without 1, with Chuck Norris Programming Language (**CNPL**) you also can!. For those who think assembler is a high level language.\n\n## Syntax\nThe syntax is probably the easiest to learn: `0` is the only command you'll need. What does `0` do? Everything.\n\n## ChuckScript\nChuck Norris code is so powerful that no current machine can process it, so a higher abstraction was made to make the code comprehensible for humans (and machines):    \n`[0]{12}` means _\"twelve zeroes\"_ and it is translated `000000000000` in pure Chuck Norris Code.\n\nAll ChuckScripts allow comments, and only the first command with the syntax `[0]{...}` will be executed. The extension is `.cnpl`\n\n## Hello World!\nCNPL is fully functional, based on JavaScript. To start coding, just tweak this simple hello world:\n```\n[0]{9582516168086304533950061199088375933762201813077804024987245718616842}\n```\n_hello_world.cnpl_\n\n## Installation\nYou can install chuckScript from the official npm repository typing:    \n```\nnpm install -g chuckscript\n```\nOr you can manually clone from [github](https://github.com/angrykoala/chuckscript) and install with `npm install`\n\n\n\u003eYou need node and npm installed on your system\n\n\n### CNI\nCNI (_Chuck Norris Interpreter_) is the official CNPL interpreter and allows you to execute CNPL (extension .cnpl) in your machine:\n\n```\ncni myprogram.cnpl\n```\n\n### CNGEN\nOf course, CNPL is the only language you'll ever need again, however, to start learning it cni also brings a cnpl code generator, which will convert your old, un-epic JavaScript code into a bright new CNPL code, to use it:\n```\ncngen myoldjs.js newsupercode.cnpl\n```\n\n### Examples\nIn the folder `/examples` you'll find some ready-to-use examples of cnpl code:\n\n* **hello_world.cnpl:** The proper way to start learning a new language, with a easy-to-learn hello world\n* **loop.cnpl:** Learn the easy loop syntax of ChuckScript with this example\n* **sever.cnpl:** ChuckScript is web-development ready, in this example you will learn how to make your own server\n\n## Module Usage\nTo use _chuckscript_ in your node.js code, simply `require('chuckscript')`:\n\n* `execute(code)`: Executes given cnpl code (using javascript cni).\n* `cnpl2js(code)`: Translates cnpl code to javascript, returns string with js.\n* `compile(jsCode)`: Compiles javascript code into chuckscript.\n\n\n\u003e CNPL is a improved version of [Unary esoteric language](https://esolangs.org/wiki/Unary)\n\n\u003e ABC.js (c) 2013 Stephan Schmitz\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrykoala%2Fchuckscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangrykoala%2Fchuckscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrykoala%2Fchuckscript/lists"}