fortran 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Ionică Bizău <bizauionica@gmail.com> (http://ionicabizau.net)
3
+ Copyright (c) 2016-26 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,9 +1,12 @@
1
+ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->
1
2
 
2
3
  [![fortran](http://i.imgur.com/P2ExtzQ.png)](#)
3
4
 
4
5
  # fortran
5
6
 
6
- [![PayPal](https://img.shields.io/badge/%24-paypal-f39c12.svg)][paypal-donations] [![AMA](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/fortran.svg)](https://www.npmjs.com/package/fortran) [![Downloads](https://img.shields.io/npm/dt/fortran.svg)](https://www.npmjs.com/package/fortran) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
7
+ [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/fortran.svg)](https://www.npmjs.com/package/fortran) [![Downloads](https://img.shields.io/npm/dt/fortran.svg)](https://www.npmjs.com/package/fortran) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
8
+
9
+ <a href="https://www.buymeacoffee.com/H96WwChMy" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee"></a>
7
10
 
8
11
  > Fortran bridge for Node.js which allows you to run Fortran code from Node.js.
9
12
 
@@ -12,11 +15,15 @@
12
15
  ## :cloud: Installation
13
16
 
14
17
  ```sh
15
- $ npm i --save fortran
16
- ```
18
+ # Using npm
19
+ npm install --save fortran
17
20
 
21
+ # Using yarn
22
+ yarn add fortran
23
+ ```
18
24
 
19
25
  ### Prerequisites
26
+
20
27
  You have to install the Fortran compiler:
21
28
  ```sh
22
29
  # Ubuntu
@@ -26,11 +33,8 @@ sudo apt-get install fort77
26
33
  # OS X
27
34
  brew install gcc
28
35
  ```
29
-
30
36
  ## :clipboard: Example
31
37
 
32
-
33
-
34
38
  ```js
35
39
  const fotran = require("fortran");
36
40
 
@@ -47,7 +51,6 @@ fotran(`
47
51
 
48
52
  ## :memo: Documentation
49
53
 
50
-
51
54
  ### `fortran(input, callback)`
52
55
  Runs Fortran code from the Node.js side.
53
56
 
@@ -55,27 +58,52 @@ Runs Fortran code from the Node.js side.
55
58
  - **String|Path** `input`: The Fortran code to execute, or a path to a Fortran file (generally having the `.f` extension).
56
59
  - **Function** `callback`: The callback function called with `err`, `stdout` and `stderr`.
57
60
 
61
+ ## :question: Get Help
62
+
63
+ There are a few ways to get help:
58
64
 
65
+ 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long as you add a link to your Stack Overflow question.
66
+ 2. For bug reports and feature requests, open issues. :bug:
67
+ 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
68
+
69
+ ## :yum: How to Contribute
59
70
 
60
- ## :yum: How to contribute
61
71
  Have an idea? Found a bug? See [how to contribute][contributing].
62
72
 
73
+ ## :sparkling_heart: Support My Projects
74
+
75
+ 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 it (even resell it).
76
+
77
+ However, if you get some profit from this or just want to encourage me to continue creating stuff, there are a few ways you can do it:
78
+
79
+ - Starring and sharing the projects you like :rocket:
80
+ - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you for years if you buy me one. :grin: :book:
81
+ - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
82
+ - [![Support me on Patreon][badge_patreon]][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).
83
+ - **Bitcoin**—You can send me bitcoins at this address (or by scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
84
+
85
+ ![Bitcoin QR code](https://i.imgur.com/z6OQI95.png)
86
+
87
+ Thanks! :heart:
88
+
63
89
  ## :sparkles: Related
64
90
 
65
- - [`node.fortran`](https://github.com/IonicaBizau/node.fortran#readme)—Execute Node.js from Fortran.
91
+ - [`node.fortran`](https://github.com/IonicaBizau/node.fortran#readme)—Execute Node.js in your Fortran programs.
66
92
  - [`cobol`](https://github.com/IonicaBizau/node-cobol)—COBOL bridge for NodeJS which allows you to run COBOL code from NodeJS.
67
93
  - [`node.cobol`](https://github.com/IonicaBizau/node.cobol#readme)—Node.js bridge for COBOL which allows you to run Node.js code from COBOL.
68
94
 
69
-
70
-
71
95
  ## :scroll: License
72
96
 
73
97
  [MIT][license] © [Ionică Bizău][website]
74
98
 
75
- [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
76
- [donate-now]: http://i.imgur.com/6cMbHOC.png
77
-
78
- [license]: http://showalicense.com/?fullname=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica%40gmail.com%3E%20(http%3A%2F%2Fionicabizau.net)&year=2016#license-mit
79
- [website]: http://ionicabizau.net
99
+ [license]: /LICENSE
100
+ [website]: https://ionicabizau.net
80
101
  [contributing]: /CONTRIBUTING.md
81
102
  [docs]: /DOCUMENTATION.md
103
+ [badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg
104
+ [badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg
105
+ [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
106
+ [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
107
+ [patreon]: https://www.patreon.com/ionicabizau
108
+ [amazon]: https://amzn.eu/hRo9sIZ
109
+ [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
File without changes
package/lib/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fortran",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Fortran bridge for Node.js which allows you to run Fortran code from Node.js.",
5
5
  "main": "lib/index.js",
6
6
  "directories": {
@@ -17,7 +17,7 @@
17
17
  "node",
18
18
  "bridge"
19
19
  ],
20
- "author": "Ionică Bizău <bizauionica@gmail.com> (http://ionicabizau.net)",
20
+ "author": "Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)",
21
21
  "license": "MIT",
22
22
  "blah": {
23
23
  "h_img": "http://i.imgur.com/P2ExtzQ.png",
@@ -65,5 +65,21 @@
65
65
  "bugs": {
66
66
  "url": "https://github.com/IonicaBizau/node-fortran/issues"
67
67
  },
68
- "homepage": "https://github.com/IonicaBizau/node-fortran"
68
+ "homepage": "https://github.com/IonicaBizau/node-fortran",
69
+ "files": [
70
+ "bin/",
71
+ "app/",
72
+ "lib/",
73
+ "dist/",
74
+ "src/",
75
+ "scripts/",
76
+ "resources/",
77
+ "menu/",
78
+ "cli.js",
79
+ "index.js",
80
+ "index.d.ts",
81
+ "bloggify.js",
82
+ "bloggify.json",
83
+ "bloggify/"
84
+ ]
69
85
  }
package/.npmignore DELETED
@@ -1,5 +0,0 @@
1
- *.swp
2
- *.swo
3
- *~
4
- *.log
5
- node_modules
package/CONTRIBUTING.md DELETED
@@ -1,66 +0,0 @@
1
- # :eight_spoked_asterisk: :stars: :sparkles: :dizzy: :star2: :star2: :sparkles: :dizzy: :star2: :star2: Contributing :star: :star2: :dizzy: :sparkles: :star: :star2: :dizzy: :sparkles: :stars: :eight_spoked_asterisk:
2
-
3
- So, you want to contribute to this project! That's awesome. However, before
4
- doing so, please read the following simple steps how to contribute. This will
5
- make the life easier and will avoid wasting time on things which are not
6
- requested. :sparkles:
7
-
8
- ## Discuss the changes before doing them
9
- - First of all, open an issue in the repository, using the [bug tracker][1],
10
- describing the contribution you would like to make, the bug you found or any
11
- other ideas you have. This will help us to get you started on the right
12
- foot.
13
-
14
- - If it makes sense, add the platform and software information (e.g. operating
15
- system, Node.JS version etc.), screenshots (so we can see what you are
16
- seeing).
17
-
18
- - It is recommended to wait for feedback before continuing to next steps.
19
- However, if the issue is clear (e.g. a typo) and the fix is simple, you can
20
- continue and fix it.
21
-
22
- ## Fixing issues
23
- - Fork the project in your account and create a branch with your fix:
24
- `some-great-feature` or `some-issue-fix`.
25
-
26
- - Commit your changes in that branch, writing the code following the
27
- [code style][2]. If the project contains tests (generally, the `test`
28
- directory), you are encouraged to add a test as well. :memo:
29
-
30
- - If the project contains a `package.json` or a `bower.json` file add yourself
31
- in the `contributors` array (or `authors` in the case of `bower.json`;
32
- if the array does not exist, create it):
33
-
34
- ```json
35
- {
36
- "contributors": [
37
- "Your Name <and@email.address> (http://your.website)"
38
- ]
39
- }
40
- ```
41
-
42
- ## Creating a pull request
43
-
44
- - Open a pull request, and reference the initial issue in the pull request
45
- message (e.g. *fixes #<your-issue-number>*). Write a good description and
46
- title, so everybody will know what is fixed/improved.
47
-
48
- - If it makes sense, add screenshots, gifs etc., so it is easier to see what
49
- is going on.
50
-
51
- ## Wait for feedback
52
- Before accepting your contributions, we will review them. You may get feedback
53
- about what should be fixed in your modified code. If so, just keep committing
54
- in your branch and the pull request will be updated automatically.
55
-
56
- ## Everyone is happy!
57
- Finally, your contributions will be merged, and everyone will be happy! :smile:
58
- Contributions are more than welcome!
59
-
60
- Thanks! :sweat_smile:
61
-
62
-
63
-
64
- [1]: https://github.com/IonicaBizau/node-fortran/issues
65
-
66
- [2]: https://github.com/IonicaBizau/code-style
package/DOCUMENTATION.md DELETED
@@ -1,11 +0,0 @@
1
- ## Documentation
2
-
3
- You can see below the API reference of this module.
4
-
5
- ### `fortran(input, callback)`
6
- Runs Fortran code from the Node.js side.
7
-
8
- #### Params
9
- - **String|Path** `input`: The Fortran code to execute, or a path to a Fortran file (generally having the `.f` extension).
10
- - **Function** `callback`: The callback function called with `err`, `stdout` and `stderr`.
11
-
package/examples/index.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- const fotran = require("../lib");
4
-
5
- // Let's run some Fortran stuff
6
- fotran(`
7
- program hello
8
- print *, "Hello World!"
9
- end program hello
10
- `, (err, data) => {
11
- console.log(err || data);
12
- // => Hello World
13
- });
@@ -1,12 +0,0 @@
1
- const fortran = require("../lib")
2
- , abs = require("abs")
3
- ;
4
-
5
- const input = process.argv[2];
6
- if (!input) {
7
- return console.log("Usage: node others.js file.f");
8
- }
9
-
10
- fortran(abs(input), (err, data) => {
11
- console.log(err || data);
12
- });
@@ -1,47 +0,0 @@
1
- program happybirthday
2
- print *, "ZZZZOOZZZZOZOOZZZOOZZZOOOOO888OZZZZ$$$ZZ$$$$$77777Z"
3
- print *, "ZZZZZZZ$$$ZOZZO888OZZOOOZZ$7$Z$$ZZ$DDDDDDDOZ$77777Z"
4
- print *, "ZZZZZZ$$$$ZOZ8OOO$Z$$7III??+??II$ZZOODDDD8D8$777I7Z"
5
- print *, "ZO$ZZZZ$$$ZZOOZOO$7?++++======++?I7ZZODDDDD8$77777Z"
6
- print *, "$ZZZZZZZ$$ZOZZZ7I???+==~~~~~~~~~==+??$O8DDD8Z77II7Z"
7
- print *, "ZZ$ZZZZ$$$Z$7$7II?++=~~:,,,:::::~~=+?I7$DDDDZ7I77IZ"
8
- print *, "ZZ$ZZZ$$$OO77??III+=~~~::::::::~~~~=+II7DDDDO$77IIZ"
9
- print *, "ZZ$ZZZ$$$ZOII+?I??+~~~~~~~~~~:~~=~~=+I7I8DDD8ZIIIIO"
10
- print *, "ZZ$ZZZ$$$$$I?+???++~~~~~:~:~~~~~~~~=+I7I8D8D8Z7IIIZ"
11
- print *, "ZZ$ZZZ$$$$$II+++++?=~::~~:::~:::~==~~+I?$88DO7IIIIO"
12
- print *, "ZZ$ZZ$$$7$$I???+++?=~~:~~~~~~~~=+?III7$IZ888ZIIIIIO"
13
- print *, "$$$$$$$$$777I??++??==:,:,==~~~~===+???77?$88Z7IIIIO"
14
- print *, "$$$Z$$$$77$77?+++?7?+?=++++=:~?+=?I?I+IZ?7D8ZIIIIIO"
15
- print *, "$Z$$$$$$777+=++$7+I+=++===+I+=?+=~~==+?+=O88$IIII78"
16
- print *, "$$$$$$$7777==++=?+?++==~~~~?+~++=~~===++I88O$777Z8N"
17
- print *, "$Z$$$$$$777==++=++++=~~====++~=+=~~~~=+I?8888OO8DDN"
18
- print *, "$Z$$$$$7777===+III?+=~~~~~~?=~~++:~~~=?+78DDDD88D$$"
19
- print *, "$$$$$$$$7777=~=IIII+=~~~:~~++~:++=~~=++=O88DDD8ZI7I"
20
- print *, "$$$$$$$$777$7I=??I+?+==~~~~~:::~~~~~~~?8$$7I++??II?"
21
- print *, "Z$$$$$$$777$$$$$II+?+++~~~~::::~==+~~~?$II7I==??II?"
22
- print *, "8Z$$$$$7777$$$$$II+?++=~~~~~~=~+???=~~?7?+I?=+??II?"
23
- print *, "DDDOZ$$$777$$ZO87I?+?++:~~~~~~~~~===~~?????????III?"
24
- print *, "NDDDDD$$$ZZ8888I~?+=?===~~~~~~~~~~~~=?I++??++III?++"
25
- print *, "NNDNDD8OO88DD8O~~~===?=+=~~~~~~:~~~~+7I++++++?II+++"
26
- print *, "NNDNDDDDDD88OOZ~:::===+=+=~~~~::~:~=?I++++++???+==?"
27
- print *, "NNNNNND88OOOOOZ8$:,,,:~=++?+==?=+I7D?+++++=+++====+"
28
- print *, "NDD88O8OOOZOZOO888~,,,,::~~~~:~+II+:8+++++====+===?"
29
- print *, "888O88OOZZOOOZZZO88O,,,,,,,~~=++++~:O8?===++==~=~=I"
30
- print *, "88O88OOOOZOOZZZZZ88DO,,,,,,::~~===~~Z88?~+?+==~===I"
31
- print *, "OO8OO8OOZOOZOZZZZZO888D,,,,,.O8D$,,~OOOOZOZZO$====I"
32
- print *, "OZOOOOOZZZZOOZZZZ$Z8D88Z,,,,,ID8$,,~+ZZOOZZZZZZZ7~7"
33
- print *, "ZZZZZZZZZZOZZZZZ$ZZZD8888+,:,?O8=,,::$$OOOZZZ$ZZZO7"
34
- print *, "ZZZZZZZZZ$$$ZZ$Z$Z$$Z888888,,888O,,,:Z$OOZZZZZ$ZZZI"
35
- print *, "ZZZZZZOZZ$$Z$$$$$$$$Z8888O8,.8888,,,:Z$ZOOOZZ$$ZZ$O"
36
- print *, "ZZZ$ZZZZZ$$Z$$$$$$$ZZZ8D8888:8D88D,::O$ZOOZZZZZZZ7O"
37
- print *, " * * * "
38
- print *, "John Warner Backus (December 3, 1924 - March 17,"
39
- print *, "2007) was an American computer scientist. He"
40
- print *, "directed the team that invented the first widely"
41
- print *, "used high-level programming language (FORTRAN) and"
42
- print *, "was the inventor of the Backus-Naur form (BNF), a"
43
- print *, "widely used notation to define formal language"
44
- print *, "syntax. He also did research in function-level"
45
- print *, "programming and helped to popularize it."
46
- print *, " --Wikipedia"
47
- end program happybirthday