node-fortran

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

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者IonicaBizau/node-fortran
主編程語言Fortran
編程語言Fortran (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2016-05-13 12:17:15
推送於2025-02-13 23:37:50
最后一次提交2025-02-14 00:37:39
發布數2
最新版本名稱1.0.1 (發布於 )
第一版名稱1.0.0 (發布於 )
用户参与
星數101
關注者數7
派生數7
提交數34
已啟用問題?
問題數3
打開的問題數2
拉請求數10
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?