This file contains hidden or 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
I am attesting that this GitHub handle SmokeNMirrors is linked to the Tezos account tz1iYUeQezoXX546AAfW3WGjoFWCvLVMcAjq for tzprofiles | |
sig:edsigtcbaQ8xjSwEUa4vAyzstPdMuWjuVtHAFHkycVWW9nPvvD63KzFgmey9AMPLdYgXXcdNk7H1ZhpghgP5atbe5mC1XGiMpRU |
This file contains hidden or 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
/** | |
* Copyright 2014 SmartThings | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | |
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License |
This file contains hidden or 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
const fs = require('fs'); | |
const path = require('path'); | |
const xml2js = require('xml2js'); | |
const data = fs.readFileSync(path.join(__dirname, process.argv[2]), {encoding: 'UTF-8'}); | |
xml2js.parseString(data, (err, result) => { | |
const str = result.map.string[6]._; | |
console.log(str); |