Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Client library (SDK) to quickly and easily get started with News API without worrying about the underlying set up.
Client library (SDK) to quickly and easily get started with News API without worrying about the underlying set up.
Powered by https://newsapi.org/
Fast and easy to use.
Written in TypeScript.
Fully tested with 100% code coverage.
npm | yarn |
---|---|
npm install --save ts-newsapi | yarn add ts-newsapi |
typescript | javascript |
---|---|
import NewsAPI from 'ts-newsapi' | const NewsAPI = require('ts-newsapi') |
const newsAPI = new NewsAPI('api_key')
// Get the subset of news publishers that top headlines (newsAPI.getTopHeadlines()) are available from.
// It's mainly a convenience method that you can use to keep track of the publishers available on the API, and you can pipe it straight through to your users.
const sources = await newsAPI.getSources({
category: 'general',
language: 'en',
country: 'us',
});
// Top and breaking headlines
const topHeadlines = await newsAPI.getTopHeadlines({
q: 'stocks',
country: 'us',
category: 'business',
pageSize: 20,
page: 1,
});
// Search through millions of articles from over 50,000 large and small news sources and blogs.
const headlines = await newsAPI.getEverything({
q: 'stocks',
qInTitle: 'stock',
sources: [ 'bbc-news' ],
language: 'en',
sortBy: 'relevancy',
pageSize: 20,
page: 1,
});
npm test
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Client library (SDK) to quickly and easily get started with News API without worrying about the underlying set up
The npm package ts-newsapi receives a total of 70 weekly downloads. As such, ts-newsapi popularity was classified as not popular.
We found that ts-newsapi 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.