We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 467ba40 commit 5092948Copy full SHA for 5092948
quickstart/azure_search_config.json
@@ -0,0 +1,4 @@
1
+{
2
+ "serviceName" : "laobri",
3
+ "api-key" : "abcd"
4
+}
quickstart/index.js
@@ -1,7 +1,13 @@
#!/usr/bin/env/node
+const nconf = require('nconf')
+const config = nconf.file({ file: "config.json" });
5
+
6
+console.log(config.get("serviceName"));
7
8
const run = async() => {
9
console.log("Hello, Node from CLI");
10
11
}
12
13
run();
quickstart/package.json
@@ -10,6 +10,9 @@
"type": "git",
"url": "."
},
+ "dependencies": {
14
+ "nconf": "^0.9.0"
15
+ },
16
"author": "Larry O'Brien",
17
"license": "MIT"
18
0 commit comments