adventar

0.2.1 • Public • Published

adventar Build Status

Retrieve articles from adventar

Install

$ npm install --save adventar

Usage

const adventar = require('adventar');

adventar('1536').then(res => {
	const {date, user, title, url} = res[2];
	console.log(`今日(${date})は${user}さんの「${title}」です\n${url}`);
});
// => 今日(12/03)はatsuo1203さんの「岩井研残留日誌 - あつおの日常~あつおと過ごした365日~」です
// => http://atsuocps.hatenablog.com/entry/zanryuDiary

API

adventar(input)

Returns an array of information on the advent calendar. The content is date user title url.

input

Type: string

url or id

License

MIT © akameco

Readme

Keywords

Package Sidebar

Install

npm i adventar

Weekly Downloads

2

Version

0.2.1

License

MIT

Last publish

Collaborators

  • akameco