@naanlang/naan 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/lib/env_node.js CHANGED
@@ -57,7 +57,11 @@ exports.NaanNodeREPL = function NaanNodeREPL(options) {
57
57
  this.setDirectory = function setDirectory(path) { // override base directory
58
58
  naanlib.js.d = path;
59
59
  };
60
-
60
+
61
+ this.setGlobal = function setGlobal(key, value) { // set a global value
62
+ naanlib.js[key] = value;
63
+ };
64
+
61
65
  this.textCommand = function textCommand(cmd) { // send a command without echo
62
66
  outEnable = true;
63
67
  naanlib.textLine(cmd);
package/lib/node_repl.js CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * column positioning: // // !
8
8
  *
9
- * Copyright (c) 2021 by Richard C. Zulch
9
+ * Copyright (c) 2021-2022 by Richard C. Zulch
10
10
  *
11
11
  */
12
12
 
@@ -22,4 +22,4 @@ var NaanNodeREPL = require('./env_node.js');
22
22
 
23
23
  var naanrepl = new NaanNodeREPL();
24
24
  naanrepl.setDirectory(__dirname);
25
- naanrepl.textCommand("nodeparse('node_repl_init.nlg');;");
25
+ naanrepl.textCommand("nodeparse('node_repl_init.nlg');;\n");
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@naanlang/naan",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "author": "Richard C. Zulch",
5
5
  "description": "Naan™ software platform",
6
6
  "main": "./lib/core/naanlib.js",
7
7
  "browser": "./dist/naanlib.min.js",
8
8
  "license" : "MIT",
9
+ "bin": {
10
+ "naan": "./bin/index.js"
11
+ },
9
12
  "scripts": {
10
13
  "start": "node lib/node_repl.js",
11
14
  "test": "node test/node_test.js"