
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
news-search-lib
Advanced tools
Start by running this command in your project's directory
npm install news-search-lib --save
And then requring it on the top of your index.js file
require('news-search-lib')
Returns the top five stories of the day
Coding samples:
const topFive = topFiveStories()
console.log(topFive) // will log an array of story objects
Returns the top five headlines of the day. If you're in a rush and you need the quick scoop on the day this will do it for you.
Coding samples:
const topFive = topFiveHeadlines()
console.log(topFive) // will log an array of story headlines (strings)
Returns a random story from the top 10. Good for when you're feeling spontaneous.
Coding samples:
const story = getRandomStory()
console.log(story) // will log a single story object
FAQs
Adds methods to news search api
We found that news-search-lib 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
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.