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
#!/bin/bash | |
set -e | |
isoDir="$1" | |
if ! [ -d "$isoDir" ]; | |
then | |
echo "$isoDir not a dir" | |
exit 1 | |
fi |
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
function text19(value) { | |
switch (value) { | |
case 1: | |
return "one"; | |
case 2: | |
return "two"; | |
case 3: | |
return "three"; | |
case 4: | |
return "four"; |
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
import { Parser } from 'htmlparser2' | |
import { Transform } from 'stream' | |
import _ from 'lodash' | |
export default class XmlParser extends Transform { | |
constructor (path = [], options = {}) { | |
super({ | |
...options, | |
objectMode: true | |
}) |