All npm packages now available
Key point
Replit has launched a feature that lets you import any npm package in web-based language environments.
Details
Following last year's support for importing Python packages from PyPi, Replit is expanding its package import feature to support npm packages for web-based language environments.
Supported environments include JavaScript REPL, HTML/CSS/JS, ES2016, and more, allowing use of any npm package that can run in a browser.
Here's how it works:
- Parses
requirestatements in the code - Fetches the npm bundle via wzrd.in
- Executes the fetched bundle in the same context as the code
ES6 imports are not currently supported, but support is planned soon.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.