
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@openreplay/sourcemap-uploader
Advanced tools
An NPM module to upload your JS sourcemap files to your OpenReplay instance.
npm i -D @openreplay/sourcemap-uploader
sourcemap-uploader -s https://opnereplay.mycompany.com/api -k API_KEY -p PROJECT_KEY file -m ./dist/index.js.map -u https://myapp.com/index.js
The URL must correspond to the root where you upload JS files from the directory. In other words, if you have your app-42.js along with the app-42.js.map in the ./build folder and then want to upload it to your OpenReplay instance so it can be reachable through the link https://myapp.com/static/app-42.js, then the command should be like:
sourcemap-uploader -s https://opnereplay.mycompany.com/api -k API_KEY -p PROJECT_KEY dir -m ./build -u https://myapp.com/static
Use -s (--server) to specify the URL of your OpenReplay instance (append it with /api).
Do not use this parameter if you use SaaS version of the OpenRplay
Use -v (--verbose) to see the logs.
There are two functions you can export from the package:
uploadFile(api_key, project_key, sourcemap_file_path, js_file_url, [server])
uploadDir(api_key, project_key, sourcemap_dir_path, js_dir_url, [server])
Both functions return Promise with a result value to be the list of files for which sourcemaps were uploaded.
npm install
bash run-dev.sh
FAQs
NPM module to upload your JS sourcemaps files to OpenReplay
The npm package @openreplay/sourcemap-uploader receives a total of 1,572 weekly downloads. As such, @openreplay/sourcemap-uploader popularity was classified as popular.
We found that @openreplay/sourcemap-uploader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.