node-fortran

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

Github stars Tracking Chart

fortran

fortran

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

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

  • 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.

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

  • Starring and sharing the projects you like :rocket:

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

  • PayPal—You can make one-time donations via PayPal. I'll probably buy a coffee tea. :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! :heart:

  • node.fortran—Execute Node.js in your Fortran programs.
  • 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.

:scroll: License

MIT © Ionică Bizău

Main metrics

Overview
Name With OwnerIonicaBizau/node-fortran
Primary LanguageFortran
Program languageFortran (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2016-05-13 12:17:15
Pushed At2025-02-13 23:37:50
Last Commit At2025-02-14 00:37:39
Release Count2
Last Release Name1.0.1 (Posted on )
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count101
Watchers Count7
Fork Count7
Commits Count34
Has Issues Enabled
Issues Count3
Issue Open Count2
Pull Requests Count10
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private