This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("javascript.util"); | |
var jf = require('jsonfile'); | |
var fs = require('fs'); | |
var YAML = require('yamljs'); | |
var regexp = require('node-regexp'); | |
var callback = console.log; | |
var array =[]; | |
var S = require('string'); | |
YAML.load('name_file.yaml', function(result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xlsxj = require("xlsx-to-json"); | |
input = "name_file.xlsx" | |
function convertXlsxToJson(file) { | |
xlsxj({ | |
input: file, | |
output: "output.json" | |
}, function(err, result) { | |
if(err) { | |
console.error(err); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//modules required | |
var jf = require('jsonfile') | |
var util = require('util') | |
var fs = require('fs'); | |
var file = 'name_file.json' | |
function readJSON(file) { | |
fs.readFile(file, function (err, data) { |
NewerOlder