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.
Automatically pull interesting quotes out of an article.
You've probably seen pull quotes like this in online articles:
Well, until now a human being had to spend several moments choosing which quotes to feature. This node module uses basic text summarization techniques to find interesting sentences to use as pull quotes automatically.
This node module uses an improved version of the algorithm presented in the article Build your own summary tool! by Shlomi Babluki. However, this module is improved in both capability and efficency.
To install the command-line pullquoter
utility:
npm install -g pullquoter
To install the pullquoter
module for use in your Node.js project:
npm install --save pullquoter
You can use pullquoter
from node or right on the command line!
You can pass text to pullquoter and it will pull out interesting sentences.
You can either pass in a file name:
pullquoter my_file.txt
Or you can pipe it in:
cat my_file.txt | pullquoter
By default, it returns one interesting sentence. If you want more,
use the -n
parameter:
pullquoter -n 10 my_file.txt
You can easily chain this together with other unix commands to do cool stuff. For example, you can download a web page, and then use unfluff to grab the page text and jq to pull out the body test. Then just pass it to pullquoter and get sentences!
curl -s "http://www.polygon.com/2014/6/26/5842180/shovel-knight-review-pc-3ds-wii-u" | unfluff | jq -r .text | pullquoter
It's not just the mechanics of old-school games that Shovel Knight nails, though; it also has that undefinable, metaphysical look and feel of an NES classic.
pullquoter(text, numberOfQuotesToPull)
text: The text you want to parse. This should be plain text in English.
numberOfQuotesToPull (default: 1): The number of sentences to pull out of the article
pullquoter = require('pullquoter');
quotes = pullquoter(myText);
Or pass in how mant quotes you want:
pullquoter = require('pullquoter');
quotes = pullquoter(myText, 10);
0.0.1
FAQs
Automatically pull interesting quotes out of an article.
The npm package pullquoter receives a total of 13 weekly downloads. As such, pullquoter popularity was classified as not popular.
We found that pullquoter 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.