
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Load & execute JavaScript modules accross platforms
npm install -g jsenvjsenv bmkdir test & cd test & jsenv init<Note that when running locally, ensure you are running from a local server or a browser with local XHR requests enabled. <If not you will get an error message.
<For Chrome you have to start chrome using the flag --allow-file-access-from-files
<In Firefox this requires navigating to about:config, entering security.fileuri.strict_origin_policy in the filter box and toggling the option to false.
A module is a javaScript source executed in a specific context, for example the following :
var a = include('a');
return 'hello ' + a;
Is equivalent to
// ensure a is loaded before executing the module source
ENV.load('a').then(function(){
// create a module
var module = ENV.createModule();
// wrap module source in a function & call it
(function(module, include){
var a = include('a');
return 'hello ' + a;
}).call(ENV.global, module, module.include.bind(module));
});
Javascript sources can be fetched from different locations, for example the followings includes are valid.
include('foo');
include('./foo');
include('../../foo');
include('file:///C:/modules/foo');
include('http://my-domain.com/modules/foo');
include('https://external-domain.com/modules/foo');
include('github://user@repo/foo');
npm install -g jsenv<script src="modules/jsenv/index.js"></script>This script installs a global variable called ENV
The global object in the environment
FAQs
Load & execute JavaScript modules accross platforms
The npm package jsenv receives a total of 2 weekly downloads. As such, jsenv popularity was classified as not popular.
We found that jsenv 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.