
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
haxe-modular
Advanced tools
[](https://travis-ci.org/elsassph/haxe-modular) [](http://lib.haxe.org/p/mo
Code splitting and hot-reload for Haxe JavaScript applications.
If you use Haxe for JavaScript, directly or indirectly (React, OpenFl,...), then you probably want to:
Haxe has an excellent, compact and optimised JS output, but it's always a single file; even with good minification / gzip compression it can be a large payload.
Modular can split gigantic Haxe-JS outputs into load-on-demand features, without size/speed overhead, and without losing sourcemaps.
import MyClass;
...
load(MyClass).then(function(_) {
var c = new MyClass();
});
The approach is to reference one class asynchronously in your code:
There are 2 ways to use Haxe Modular, depending on your project/toolchain/goals:
In both cases, it is advisable to read about the technical details:
Both solutions:
hxml
build configuration,Standalone Modular is an easy, drop-in, addition to a regular Haxe JS build process - it is very lightweight and unobstrusive, and you don't need to learn Webpack.
Using NPM modules however requires a bit of ceremony: all the NPM dependencies have to
be gathered (manually) in a libs.js
which is loaded upfront.
Webpack Haxe Loader is a more powerful setup but you'll have to learn Webpack. Webpack is a complex and large system offering vast possibilities from the JS ecosystem.
Q: Where can I get more help? I have questions / issues...
Q: Is it only for React projects?
Q: Is it possible to minify the code?
mangle
option which rename variables.-lib closure
(in "simple" mode); make sure -lib modular
is
defined first, and each individual JS bundle will be compressed automatically.
Use -D modular_nocompress
to disable Closure compression.Q: Can I extract a library/package from my code?
Q: Can I still use the includeFile
macro to inject JS code in the output?
--macro includeFile('my-lib.js')
.FAQs
[](https://travis-ci.org/elsassph/haxe-modular) [](http://lib.haxe.org/p/mo
The npm package haxe-modular receives a total of 190 weekly downloads. As such, haxe-modular popularity was classified as not popular.
We found that haxe-modular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.