eggtart

0.1.2 • Public • Published
Avatar

Build Status Dependencies Status Coverage Status Published Version
npm Badge

Eggtart

Eggtart is a Delicious API node.js client.

This is handy when you want to use Delicious API service from a node.js application. Delicious API methods are available as Eggtart methods, e.g. https://api.delicious.com/v1/posts/recent?count=8 is mapped to eggtart.posts().recent({ count: 8 }, cb); .

Tested with Delicious API v1.

Installation

npm install [-g] eggtart

or as a dependency in package.json file:

"dependencies": {
  "eggtart": "x.y.z"
}

Usage

var Eggtart = require('eggtart'),
  eggtart = new Eggtart('username', 'password');

Get recent bookmarks:

eggtart.posts().recent(function (err, result) {
  ...
});

Get bookmarks for specific tags:

eggtart.posts().get({ tag: 'sometag' }, function (err, result) {
  ...
});

Rename tag on all posts:

eggtart.tags().rename({ old: 'foo', new: 'bar' }, function (err, result) {
  ...
})

Fetch tag bundles:

eggtart.tagBundles().all(function (err, result) {
  ...
});

Check out Delicious API documentation for a complete list of available methods.

Eggtart also has a set of CLI commands.

Take screenshots of bookmarks having at least one tag within the specified comma-separated tag list:

eggtart -u user:pass screenshot --tags tag1,tag2,tag3

Delete bookmarks having at least a tag within the specified comma-separated tag list:

eggtart -u user:pass delete --tags tag1,tag2,tag3

Colophon

Developer's Guide

Build reports:

Package Sidebar

Install

npm i eggtart

Weekly Downloads

1

Version

0.1.2

License

none

Last publish

Collaborators

  • cliffano