IonicaBizau / node-fortran

:skull: Fortran bridge for Node.js which allows you to run Fortran code from Node.js.
MIT License
99 stars 7 forks source link
hacktoberfest

fortran

fortran

Support me on Patreon Buy me a book PayPal Ask me anything Version Downloads Get help on Codementor

Buy Me A Coffee

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

fortran

:cloud: Installation

# Using npm
npm install --save fortran

# Using yarn
yarn add fortran

Prerequisites

You have to install the Fortran compiler:

# Ubuntu
sudo apt-get install gfortran
sudo apt-get install fort77

# OS X
brew install gcc

:clipboard: Example

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
});

:question: Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. :bug:
  3. For direct and quick help, you can use Codementor. :rocket:

:memo: Documentation

fortran(input, callback)

Runs Fortran code from the Node.js side.

Params

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:sparkling_heart: Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this 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).

However, 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:

Thanks! :heart:

:scroll: License

MIT © Ionică Bizău