Skip to content

Instantly share code, notes, and snippets.

@tommystanton
Created December 3, 2013 03:26
Show Gist options
  • Select an option

  • Save tommystanton/7763413 to your computer and use it in GitHub Desktop.

Select an option

Save tommystanton/7763413 to your computer and use it in GitHub Desktop.
Use Eggtart (Node.js module) to add a bookmark to Delicious.
/*
This is very crude.
Example usage:
$ node eggtartClient.js \
'https://github.com/fcambus/ansiweather' \
'fcambus/ansiweather' \
AnsiWeather CLI weather unicode shell_script github repository-git
null { result: { '$': { code: 'done' } } }
*/
var Eggtart = require('eggtart');
var eggtart = new Eggtart('user', 'password');
eggtart.posts().add(
{
url: process.argv[2],
description: process.argv[3],
tags: process.argv.slice(4).join(",")
},
function(err, result) {
console.log(err, result);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment