Socket
Book a DemoInstallSign in
Socket

adieu

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adieu

A command line interface to cheerio library; vaguely similar to nokogiri

0.0.5
latest
Source
npmnpm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

adieu

A command line interface to cheerio library; vaguely similar to nokogiri; handy for shell scripts or makefiles.

$ npm -g i adieu
$ adieu -h
Usage: adieu [options] [file.html | URL]

Options:
  -V, --version           output the version number
  -e, --eval <code>       JS
  -p, --print             automatically console.log the result form -e
  -r, --require <module>  preload a module (default: [])
  -R, --raw               don't simplify printouts of cheerio/dom objects
  -h, --help              output usage information

Print all image urls from google's front page:

$ adieu -pe '$("img").map((_,v)=>$(v).attr("src")).get().join`\n`' http://google.com
/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png
/textinputassistant/tia.png

Read html from the stdin:

$ curl -sL http://gnu.org | adieu -pe '$("h2").first().text()'
What is GNU?

Load html into a repl:

$ adieu http://gnu.org
Your document should be available via $
> $('a').length
107

Helpers

namedesc
cheerio
$a cheerio instance w/ the loaded document
palias to console.log
putsconvert an arg to a string & write the result to the stdout

License

MIT

Keywords

nokogiri

FAQs

Package last updated on 03 May 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.