Using it inside of node v0.12.2 (on windows XP), I get junk (unicode sequence \uFEFF) at the beginning of the first tag.
Run with node pru.js
pru.js:
yaml = require('js-yaml');
fs = require('fs');
try {
var doc = yaml.safeLoad(fs.readFileSync('./pru.yaml', 'utf8'));
for(var p in doc) {
if('accion'==p.substr(1, p.length-1)) {
//for(var c=0; c<p.length; ++c) {
// console.log("'" + p[c] +"' -> "+ p.charCodeAt(c));
//}
var manual='\uFEFFaccion';
console.log("'"+p+"' y '"+manual+"' "+
((manual == p) ? "are equal" : "are different"));
}
}
}
catch (e) { console.log(e); }
pru.yaml
accion: castellano
abr: es
languages:
en: inlgés
es: español
it: italiano
ru: ruso
This is the first contribution so please excuse me if this is inapropiate or no the right place and form
Diego
Using it inside of node v0.12.2 (on windows XP), I get junk (unicode sequence \uFEFF) at the beginning of the first tag.
Run with node pru.js
pru.js:
pru.yaml
This is the first contribution so please excuse me if this is inapropiate or no the right place and form
Diego