This file contains hidden or 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
| #!/usr/bin/env node | |
| /** | |
| * Extract original source code from a JavaScript source map file. | |
| * | |
| * Usage: | |
| * node extract-sourcemap.mjs <path-to-.map-file> [output-dir] | |
| * | |
| * Example: | |
| * node extract-sourcemap.mjs cli.js.map ./src-extracted |
This file contains hidden or 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
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <vector> | |
| #include <unordered_map> | |
| #include <boost/algorithm/string.hpp> | |
| #include <utf8proc.h> | |
| //https://unicode.org/reports/tr15/#Norm_Forms | |
| //https://ssl.icu-project.org/apiref/icu4c/uchar_8h.html |