Mateusz Sipiński
Mateusz Sipiński
# Problem: Using `esm` to import module that imports builtin Node modules using `'node:*'` URL results with an error: ``` file:///C:/NodeJsProjects/esm-error-test/some-external-module.mjs:1 Error [ERR_INVALID_PROTOCOL]: Protocol 'node:' not supported. Expected 'file:' at...
According to [https://en.wikipedia.org/wiki/ANSI_escape_code#OSC_(Operating_System_Command)_sequences](), `'\x1B]0;\x07'` sequence should be stripped. ## Current behavior: ```javascript stripAnsi('\x1B[2J\x1B[m\x1B[HABC\r\n\x1B]0;C:\\WINDOWS\\system32\\cmd.exe\x07\x1B[?25h') //=> 'ABC\r\n:\\WINDOWS\\system32\\cmd.exe\x07' ``` ## Expected behavior: ```javascript stripAnsi('\x1B[2J\x1B[m\x1B[HABC\r\n\x1B]0;C:\\WINDOWS\\system32\\cmd.exe\x07\x1B[?25h') //=> 'ABC\r\n' ``` strip-ansi version: 7.0.1 os: Windows
**Before you open an issue:** - [x] I followed the [installation](https://github.com/Open-Web-Analytics/Open-Web-Analytics/wiki/Installation) or [update](https://github.com/Open-Web-Analytics/Open-Web-Analytics/wiki/Updating) guide - [x] [I read the troubleshooting guide in the wiki](https://github.com/Open-Web-Analytics/Open-Web-Analytics/wiki/Troubleshooting) - [ ] I have attached...
**Before you open an issue:** - [x] I followed the [installation](https://github.com/Open-Web-Analytics/Open-Web-Analytics/wiki/Installation) or [update](https://github.com/Open-Web-Analytics/Open-Web-Analytics/wiki/Updating) guide - [x] [I read the troubleshooting guide in the wiki](https://github.com/Open-Web-Analytics/Open-Web-Analytics/wiki/Troubleshooting) - [ ] I have attached...