LoginSignup
2
1

More than 5 years have passed since last update.

[Node]Webクリップアイコンやファビコンを取得するライブラリを作ってみた

Posted at

はじめに

今作ってるもので、Webクリップアイコンを取得しなければいけなかったのでついでにモジュール化して、npmに公開しました。
よければ使ってください。

↓Webクリップアイコンって言うんですね。はじめて知りました。
te.png

使い方

npmでインストールしてください。

npm install web-icon-node

あとは、requireしてgetで取得できます。
これだけです。

demo.coffee
web_icon = require 'web-icon-node'

web_icon.get 'http://ngnl.jp', (list) ->
  console.log list

Webクリップアイコンやファビコンがjsonに入ってます。

demo.png

さいごに

php版とpython版をそのうち作ります。
GitHubにあげてるのでよかったらみてください。
https://github.com/yuki540net/web-icon-node

GitHub: https://github.com/yuki540net
Twitter: @eriri_jp

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1