Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
scrivito-news-api
Advanced tools
A React component/Scrivito widget which shows how to work with external REST-APIs.
A React component/Scrivito widget which shows how to work with external REST-APIs.
Note: The free plan from newsapi.org only allows requests from localhost
Open your terminal.
$ cd
to your Scrivito project
$ npm install scrivito-news-api
Import the widget in your javascript (e.g. in index.js
or Widgets/index.js
).
Add this line to your index.js:
import "scrivito-news-api";
First you need an API-Key from https://newsapi.org/register. You can save the Key in the widget configuration form. Also choose a category for the news the widget should render.
With npm run build
you can build the package into build/
.
With npm start
you'll start a continues process, that rebuilds build/
automatically once the source code is changed.
To add this library locally do the following in your scrivito app:
npm install file:<path to build folder>
e.g.
npm install file:../scrivito-news-api/build/
To publish the package:
npm i && npm run build && cd build/ && npm publish
With npm run eslint
and npm run es-check
you can check your coding quality.
FAQs
A React component/Scrivito widget which shows how to work with external REST-APIs.
The npm package scrivito-news-api receives a total of 1 weekly downloads. As such, scrivito-news-api popularity was classified as not popular.
We found that scrivito-news-api 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.