🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

cjs-minifake-pmb

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cjs-minifake-pmb

Yet another "modules in browsers" sham.

latest
Source
npmnpm
Version
0.2.4
Version published
Weekly downloads
22
2100%
Maintainers
1
Weekly downloads
 
Created
Source

cjs-minifake-pmb

Yet another "modules in browsers" sham.

What it can't do

  • Understand module metadata. (e.g. package.json)
  • Detect dependencies of modules.
  • Fetch/read modules' files.

Then what's it good for?

  • If the structure of your module is simple enough, cjs-minifake-pmb might be able to load it even in circumstances where a fully-featured loader could run into problems, including:
    • Package metadata missing or inaccessible.
    • HTML served from local file system instead of from a server.
    • MSIE6, possible even MSIE4 (AMD mode only)
      • At the time you load m.js, the shims (es5-shim.min.js) from package es5-shim must be loaded already, and there must be no fake Object.definePropery yet, so don't load the shams (with letter a) from that package. If you need them, too, load them after m.js. An example can be found in test/inspect.html.

Known issues

  • needs more/better tests and docs

License

ISC

Keywords

browser

FAQs

Package last updated on 08 Dec 2024

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