update.js
function save(str) {
  let result = {};

  console.log('Writing data...');

  str.split(/\r?\n/g)
    .filter(line => line.length && line[0] !== '#')
    .forEach(line => {
      if (line.split(';').length < 2) return;

      let [ src, dst ] = line.split(';').slice(0, 2).map(s => s.trim());

      src = String.fromCodePoint(parseInt(src, 16));
      dst = dst
        .replace(/\s+/g, ' ')
        .split(' ')
        .map(code => !code ? '' : String.fromCodePoint(parseInt(code, 16)))
        .join('');
      result[src] = dst;
    });


  fs.writeFileSync(SAVE_PATH, JSON.stringify(result, null, '  '));
  console.log('Done!');
}
function save(str) {
  let result = {};

  console.log('Writing data...');

  str.split(/\r?\n/g)
    .filter(line => line.length && line[0] !== '#')
    .forEach(line => {
      if (line.split(';').length < 2) return;

      let [ src, dst ] = line.split(';').slice(0, 2).map(s => s.trim());

      src = String.fromCodePoint(parseInt(src, 16));
      dst = dst
        .replace(/\s+/g, ' ')
        .split(' ')
        .map(code => !code ? '' : String.fromCodePoint(parseInt(code, 16)))
        .join('');
      result[src] = dst;
    });


  fs.writeFileSync(SAVE_PATH, JSON.stringify(result, null, '  '));
  console.log('Done!');
}
function save ( str ) { let result = { } ; console . log ( 'Writing data...' ) ; str . split ( / \r?\n / g ) . filter ( line => line . length && line [ 0 ] !== '#' ) . forEach ( line => { if ( line . split ( ';' ) . length < 2 ) return ; let [ src , dst ] = line . split ( ';' ) . slice ( 0 , 2 ) . map ( s => s . trim ( ) ) ; src = String . fromCodePoint ( parseInt ( src , 16 ) ) ; dst = dst . replace ( / \s+ / g , ' ' ) . split ( ' ' ) . map ( code => ! code ? '' : String . fromCodePoint ( parseInt ( code , 16 ) ) ) . join ( '' ) ; result [ src ] = dst ; } ) ; fs . writeFileSync ( SAVE_PATH , JSON . stringify ( result , null , '  ' ) ) ; console . log ( 'Done!' ) ; }
Parse & save mappings
Parse & save mappings