Babel offside (indention) Javascript syntax extension.
function outer(mind) ::
console.log @
'what', 'would',
'you', 'do?'
if mind < 'blown' ::
return false
else ::
console.log @
'write more code?',
Math.max @
1,
2,
3,
fs.readFile @ `${__dirname}/example1.js`, 'utf-8', (err, data) => ::
try ::
console.log @ data
catch err ::
console.error @ err
function outer(mind) {
console.log('what', 'would', 'you', 'do?');
if (mind < 'blown') {
return false;
} else {
console.log('write more code?', Math.max(1, 2, 3));
}
fs.readFile(`${ __dirname }/example1.js`, 'utf-8', (err, data) => {
try {
console.log(data);
} catch (err) {
console.error(err);
}
});
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVua25vd24iXSwibmFtZXMiOlsib3V0ZXIiLCJtaW5kIiwiY29uc29sZSIsImxvZyIsIk1hdGgiLCJtYXgiLCJmcyIsInJlYWRGaWxlIiwiX19kaXJuYW1lIiwiZXJyIiwiZGF0YSIsImVycm9yIl0sIm1hcHBpbmdzIjoiO0FBQ0EsU0FBU0EsS0FBVCxDQUFlQyxJQUFmLEVBQXFCO0FBQ25CQyxVQUFRQyxHQUFSLENBQ0UsTUFERixFQUNVLE9BRFYsRUFFRSxLQUZGLEVBRVMsS0FGVDs7QUFLQSxNQUFJRixPQUFPLE9BQVgsRUFBb0I7QUFDbEIsV0FBTyxLQUFQO0FBQVksR0FEZCxNQUVLO0FBQ0hDLFlBQVFDLEdBQVIsQ0FDRSxrQkFERixFQUVFQyxLQUFLQyxHQUFMLENBQ0UsQ0FERixFQUVFLENBRkYsRUFHRSxDQUhGLENBRkY7QUFLTTs7QUFFUkMsS0FBR0MsUUFBSCxDQUFlLElBQUVDLFNBQVUsZUFBM0IsRUFBMEMsT0FBMUMsRUFBbUQsQ0FBQ0MsR0FBRCxFQUFNQyxJQUFOLEtBQWU7QUFDaEUsUUFBSTtBQUNGUixjQUFRQyxHQUFSLENBQVlPLElBQVo7QUFBaUIsS0FEbkIsQ0FFQSxPQUFPRCxHQUFQLEVB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