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.
Babel? WebPack? No, no more compiling, just drop the damn files into browser make it run.
The web front end is now conquered by future hi-techs. Developers will be considered not modern if not using babel to do transpiling. Awesome stuff such as React would be hard to use without transpiling.
Transpiling is slow and I'm wasting lots of time each time I need to start or restart webpack. I'm also totally tired with the configuring every time I decieded that I want to use React.
But look, JavaScript ES6 is now supported natively in Chrome which is the only browser I'd care when doing some personal stuff. We've got the cool kids in town, living with generators, arrow functions and template strings are amazing already.
So now, I'm creating this library/toolset to make it even better to work directly in browser.
Install the DropinJS developers tool (not required) with npm install dropin-js
.
Define module as a generator function in which you may write asynchronous logic as synchronous code by
yielding Promises (Just as how you would do in co
).
Get a require
function to refer to other modules. This require returns a promise so you may use yield
to achieve synchronous-like require.
Install npm module or url as a DropinJS module, so you may refer to them in your project.
Just put your files together and open your html file with a modern es6 capable browser directly, no compiling, no packaging, everything just works.
React and other popular modules may be installed to your project using dropin install react
or so.
In order to be easily blessed by the JSX syntax, I prepared a modified version of t7.js. Install it with
dropin install t7-react
.
A full working example can be found in the examples directory within this repo.
FAQs
DropinJS ========
We found that dropin-js 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.