Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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 ========
The npm package dropin-js receives a total of 0 weekly downloads. As such, dropin-js popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.