🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

fortran

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortran

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

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

fortran

fortran

PayPal AMA Version Downloads Get help on Codementor

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

fortran

:cloud: Installation

$ npm i --save 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
});

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

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

:scroll: License

MIT © Ionică Bizău

Keywords

fortran

FAQs

Package last updated on 17 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts