node-ansimd icon indicating copy to clipboard operation
node-ansimd copied to clipboard

Octal literals are not allowed in strict mode

Open WilliamHuey opened this issue 7 years ago • 0 comments

In the index.js, of this module, the octal literal is causing an error in 'strict' mode. I encounter this error when using babel and webpack to compile js output.

If all the '\033' were replaced with the hex equivalent, '\x1B', as shown in this repository: https://github.com/stevenvachon/cli-clear/commit/e6458ee26f18fa1f87601297d595ea7e2aa6e81d, the error will go away.

Thanks. 😃

WilliamHuey avatar Dec 19 '16 07:12 WilliamHuey