Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
This library provides many different tiny and handy tools to provide mechanisms that native js lacks!
This library will overwrite or expand the native js objects! Use it carefully...
The library is directly provided by JSDeliver. Hence, simply use the following line in browser environment to import and inject all the tools.
import "//cdn.jsdelivr.net/gh/JCloudYu/extes/extes.esm.js";
Since that this library is completely written using es module syntax, using this library in NodeJS environment is a little bit tricky. Please follow the following steps to install and use this library!
Install the package via following line.
npm install extes
Download the following loader script from here and name it as loader.mjs
You can use this line in your code to import and inject all the tools.
import "extes";
Run the script using following command
node --experimental-modules --loader ./loader.mjs [PATH_TO_YOUR_BOOT_SCRIPT]
The loader script is used to tell the NodeJS environment to load the scripts ended with .esm.js as es modules not CommonJS modules. The reason why I'm not using .mjs is that I want to make the scripts to be directly identified by web browsers without the need to add additional configuration to make the server respond correct content-type header. 'cause it will be difficult to do that if you're not hosting your own web server!
FAQs
A tiny library that extends native js with some handy tools
The npm package extes receives a total of 5 weekly downloads. As such, extes popularity was classified as not popular.
We found that extes 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.