{"id":17454316,"url":"https://github.com/ionicabizau/node.cobol","last_synced_at":"2025-10-26T17:47:17.314Z","repository":{"id":45761699,"uuid":"58955738","full_name":"IonicaBizau/node.cobol","owner":"IonicaBizau","description":":pager: Node.js bridge for COBOL which allows you to run Node.js code from COBOL.","archived":false,"fork":false,"pushed_at":"2021-05-14T07:13:27.000Z","size":26,"stargazers_count":162,"open_issues_count":0,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-12T18:49:51.727Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"COBOL","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/IonicaBizau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-16T18:13:18.000Z","updated_at":"2024-07-13T07:24:41.000Z","dependencies_parsed_at":"2022-08-05T08:16:14.450Z","dependency_job_id":null,"html_url":"https://github.com/IonicaBizau/node.cobol","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fnode.cobol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fnode.cobol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fnode.cobol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fnode.cobol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IonicaBizau","download_url":"https://codeload.github.com/IonicaBizau/node.cobol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241444009,"owners_count":19963750,"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":["hacktoberfest"],"created_at":"2024-10-18T01:29:08.728Z","updated_at":"2025-10-26T17:47:12.275Z","avatar_url":"https://github.com/IonicaBizau.png","language":"COBOL","funding_links":["https://www.buymeacoffee.com/H96WwChMy","https://www.patreon.com/ionicabizau","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RVXDDLKKLQRJW"],"categories":[],"sub_categories":[],"readme":"\u003c!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --\u003e\n\n\n\n\n\n\n\n\n[![node.cobol](http://i.imgur.com/x9CJpKB.png)](#)\n\n\n\n\n\n\n\n\n\n\n\n# node.cobol\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/node.cobol.svg)](https://www.npmjs.com/package/node.cobol) [![Downloads](https://img.shields.io/npm/dt/node.cobol.svg)](https://www.npmjs.com/package/node.cobol) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github\u0026utm_medium=button\u0026utm_term=johnnyb\u0026utm_campaign=github)\n\n\u003ca href=\"https://www.buymeacoffee.com/H96WwChMy\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Buy Me A Coffee\"\u003e\u003c/a\u003e\n\n\n\n\n\n\n\n\u003e Node.js bridge for COBOL which allows you to run Node.js code from COBOL.\n\n\n\n\n\n\n\n\n\n\n\n[![node.cobol](http://i.imgur.com/xmsSmLX.png)](#)\n\n\n\n\n\n\n\n\n\n\n\nYou have to install [Node.js](https://nodejs.org/en/) on\nyour machine. In case you do not have a COBOL compiler,\nyou can install [GnuCOBOL](https://www.gnu.org/software/gnucobol/) by running:\n```sh\n# Ubuntu and other Debian-based distributions\nsudo apt-get install open-cobol\n\n# Older versions of Debian-based systems:\nsudo apt-get install open-cobol\n\n# OS X\nbrew install gnu-cobol\n```\n\n\n\n\n\n\n\n\n## :clipboard: Example\n\n\n\n```cobol\n      * Compile this file together with the node.cobol\n      * modules:\n      *\n      *  $ cobc -x example/main.cbl lib/node-exec*.cbl\n      *\n      * Then execute the binary file:\n      *\n      *  $ ./main\n       IDENTIFICATION DIVISION.\n       PROGRAM-ID. MAIN.\n\n       DATA DIVISION.\n          WORKING-STORAGE SECTION.\n          01 NODEJS-CODE PIC X(100) value \"console.log('Hello World!')\".\n\n       PROCEDURE DIVISION.\n      * Execute a short Node.js snippet\n           CALL 'EXEC_NODEJS' USING NODEJS-CODE\n\n           DISPLAY \"Starting an HTTP server on port 8000\".\n\n      * Convert an image into ASCII/ANSI art\n           CALL 'EXEC_NODEJS_FILE' USING \"example/grace-hopper.js\"\n\n           DISPLAY \"Starting an HTTP server on port 8000\".\n\n      * Starting an HTTP server in Node.js\n           CALL 'EXEC_NODEJS_FILE' USING \"example/server.js\".\n       STOP RUN.\n```\n\n\n\n\n\n\nTo compile the program, use:\n```sh\ncobc -x example/main.cbl lib/node-exec*.cbl\n```\n\n\n\n\n\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\n\n\n\n\n\n\n## :memo: Documentation\n\nThe COBOL modules from the [`lib/`](/lib) directory export the following subroutines:\n### `EXEC_NODEJS(code)`\n\n\n - `code`: The Node.js snippet to execute.\n\n### `EXEC_NODEJS_FILE(file)`\n\n\n - `file`: The Node.js file path.\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n## :sparkling_heart: Support my projects\nI open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n    ![](https://i.imgur.com/z6OQI95.png)\n\n\nThanks! :heart:\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n\n\n\n\n\n[license]: /LICENSE\n[website]: https://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RVXDDLKKLQRJW\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionicabizau%2Fnode.cobol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionicabizau%2Fnode.cobol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionicabizau%2Fnode.cobol/lists"}