Fortran bridge for Node.js which allows you to run Fortran code from Node.js.
$ npm i --save fortran
You have to install the Fortran compiler:
# Ubuntu
sudo apt-get install gfortran
sudo apt-get install fort77
# OS X
brew install gcc
const fotran = require("fortran");
// Let's run some Fortran stuff
fotran(`
program hello
print *, "Hello World!"
end program hello
`, (err, data) => {
console.log(err || data);
// => Hello World
});
fortran(input, callback)
Runs Fortran code from the Node.js side.
input
: The Fortran code to execute, or a path to a Fortran file (generally having the .f
extension).callback
: The callback function called with err
, stdout
and stderr
.Have an idea? Found a bug? See how to contribute.
node.fortran
—Execute Node.js from Fortran.cobol
—COBOL bridge for NodeJS which allows you to run COBOL code from NodeJS.node.cobol
—Node.js bridge for COBOL which allows you to run Node.js code from COBOL.Version | Tag | Published |
---|---|---|
1.0.0 | latest | 6yrs ago |