Skip to content

azu/hatebu-mydata-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hatebu-mydata-parser Build Status

はてなブックマークのsearch.dataのパーサライブラリ

search.dataとは以下のようなブラウザ拡張で使われてるはてなブックマークのユーザーが登録した全件データを取得するAPI 

詳しくは search.data-format.md を参照

Installation

npm install hatebu-mydata-parser

Usage

var parse = require("hatebu-mydata-parser").parse;
var data = parse(searchData); // searchDataのテキストを渡す
/* dataには以下のようなオブジェクトの配列が入る
{
    title: "string",
    comment: "string",
    url: "string",
    date: new Date()
};
*/

search.dataのフォーマットについては

search.data-format.md を参照

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

About

はてなブックマークのsearch.dataのパーサライブラリ

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published