Skip to content

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

License

Notifications You must be signed in to change notification settings

IonicaBizau/node-fortran

Repository files navigation

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

☁️ 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

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

❓ 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. 🐛
  3. For direct and quick help, you can use Codementor. 🚀

📝 Documentation

fortran(input, callback)

Runs Fortran code from the Node.js side.

Params

  • String|Path input: The Fortran code to execute, or a path to a Fortran file (generally having the .f extension).
  • Function callback: The callback function called with err, stdout and stderr.

😋 How to contribute

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

💖 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:

  • Starring and sharing the projects you like 🚀

  • Buy me a book—I love books! I will remember you after years if you buy me one. 😁 📖

  • PayPal—You can make one-time donations via PayPal. I'll probably buy a coffee tea. 🍵

  • Support me on 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).

  • Bitcoin—You can send me bitcoins at this address (or scanning the code below): 1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6

Thanks! ❤️

📜 License

MIT © Ionică Bizău

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published