New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

emport

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emport

A module-like system for stiching together browser-side javascript (and coffeescript) files

latest
Source
npmnpm
Version
0.6.4
Version published
Maintainers
2
Created
Source

emport.js

A module-like packaging system for javascript and coffeescript source files that target the browser.

Don't use this. Use browserify

The idea here was to build a front-end module system that had no run-time (only build-time) dependencies. It seemed like a good idea, the new version of browserify seems like a better idea.

This build process:

echo "module.exports = 'oh hai'" > module-that-cant-be-used-in-browser.js
echo "alert(require('./cant-be-used-in-browser.js'))" > app-that-wont-work-in-browser.js
browserify app-that-wont-work-in-browser.js > bundled-app-for-browser.js
echo "<script src=bundled-app-for-browser.js></script>" > app.html
open app.html

Adds 531 total bytes of overhead. Seems worth it for the ability to use the node/common.js module system.

Keywords

packaging

FAQs

Package last updated on 27 Nov 2013

Did you know?

Socket

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.

Install

Related posts