mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-19 01:54:02 +00:00
add node_modules
This commit is contained in:
17
node_modules/xml2js/Depp.js
generated
vendored
Normal file
17
node_modules/xml2js/Depp.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var util = require('util');
|
||||
var fs = require('fs');
|
||||
var xml2js = require('xml2js');
|
||||
|
||||
fs.readFile(__dirname + '/Config.xml', function(err, data) {
|
||||
xml2js.parseString(data, function (err, globalConfig) {
|
||||
console.log(util.inspect(globalConfig, false, null));
|
||||
var config = {
|
||||
user: globalConfig.config.db[0].user[0],
|
||||
password: globalConfig.config.db[0].password[0],
|
||||
server: globalConfig.config.db[0].server[0],
|
||||
port: globalConfig.config.db[0].port[0],
|
||||
database: globalConfig.config.db[0].database[0]
|
||||
};
|
||||
console.log(config);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user