UNPKG

node.cobol

Version:

Node.js bridge for COBOL which allows you to run Node.js code from COBOL.

107 lines 2.53 kB
{ "name": "node.cobol", "description": "Node.js bridge for COBOL which allows you to run Node.js code from COBOL.", "keywords": [ "node", "cobol", "run", "js", "from" ], "license": "MIT", "version": "1.0.13", "main": "lib/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)", "files": [ "bin/", "app/", "lib/", "dist/", "src/", "scripts/", "resources/", "menu/", "cli.js", "index.js", "index.d.ts", "package-lock.json", "bloggify.js", "bloggify.json", "bloggify/" ], "repository": { "type": "git", "url": "git+ssh://git@github.com/IonicaBizau/node.cobol.git" }, "bugs": { "url": "https://github.com/IonicaBizau/node.cobol/issues" }, "homepage": "https://github.com/IonicaBizau/node.cobol#readme", "blah": { "examplePath": "main.cbl", "exampleLang": "cobol", "h_img": "http://i.imgur.com/x9CJpKB.png", "ex_img": "http://i.imgur.com/xmsSmLX.png", "installation": [ [ "You have to install [Node.js](https://nodejs.org/en/) on", "your machine. In case you do not have a COBOL compiler,", "you can install [GnuCOBOL](https://www.gnu.org/software/gnucobol/) by running:" ], { "code": { "language": "sh", "content": [ "# Ubuntu and other Debian-based distributions", "sudo apt-get install open-cobol", "", "# Older versions of Debian-based systems:", "sudo apt-get install open-cobol", "", "# OS X", "brew install gnu-cobol" ] } } ], "example": [ "To compile the program, use:", { "code": { "language": "sh", "content": "cobc -x example/main.cbl lib/node-exec*.cbl" } } ], "documentation": [ "The COBOL modules from the [`lib/`](/lib) directory export the following subroutines:", { "h3": "`EXEC_NODEJS(code)`" }, { "ul": [ "`code`: The Node.js snippet to execute." ] }, { "h3": "`EXEC_NODEJS_FILE(file)`" }, { "ul": [ "`file`: The Node.js file path." ] } ], "related": [ "cobol", "fortran", "node.fortran" ] }, "dependencies": { "image-to-ascii": "^3.0.2" } }