
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
cnn-content-retriever
Advanced tools
CNN Content Retriever - For retrieving content from Hypatia
A service designed to pull content from Hypatia for CNN content. Hypatia is an API for working with CNN content. You can find more details about Hypatia at https://developer.cnn.com, which will make no mention of the term "Hypatia", but thats it.
Why should we use this if Hypatia has it's own api? Hypatia's model requires multiple queries to get all of the content for a particular url. This service makes that a little easier by fetching all references from a base model and stitching them in place of the reference to return a full hydrated model.
Read these "requirements" as "only tested with".
$ npm install --save --save-exact cnn-content-retriever
The --save-exact
is up to you. We recommend saving exact versions.
This is intended to be used as a dependency in a larger application. Refer to
the the below example and the real example.js, that you
can run with node example/example.js
.
'use strict';
const ContentRetriever = require('cnn-content-retriever'),
url = 'http://www.cnn.com/2016/02/18/entertainment/kanye-west-rants-feat/index.html',
contentRetriever = new ContentRetriever(url);
contentRetriever.getBaseContentModel().then(function success(baseModel) {
contentRetriever.getRelatedContent(baseModel).then(function success(resolvedModel) {
console.log(JSON.stringify(resolvedModel, null, 2));
});
});
You can generate and view the docs locally with the commands below. The open
command will only work on MacOS.
$ npm run generate-docs
$ open docs/index.html
You can also browse the most current release at http://d1qmctp03wa6q9.cloudfront.net/cnn-content-retriever/index.html. CNAME coming at some point.
generate-authors
- Generates AUTHORS.md.generate-changelog
- Generates output to put in CHANGELOG.md.generate-coverage
- Generates a code coverage report in /coverage
.generate-docs
- Generates ESDoc documentation in /docs
.test
- Runs all tests.update-apply
- Updates package.json with dependency updates.update-check
- Outputs if any dependency updates are needed.DEBUG=cnn-content-retriever:*
- Set to enable visible
debug logging to console.Always develop on the node version specified in the .nvmrc file.
If nvm is used typing nvm install
in the terminal will insure the correct version is used.
Contributors should be familiar with the Contributors Guide
Collaborators should be familiar with the Collaborator Guide
The current Project Owner (PO) of this project is Jamie Young (@jamsyoung).
See LICENSE.md for details.
♥︎ Make good art - Neil Gaiman
FAQs
CNN Content Retriever - For retrieving content from Hypatia
The npm package cnn-content-retriever receives a total of 4 weekly downloads. As such, cnn-content-retriever popularity was classified as not popular.
We found that cnn-content-retriever demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.