0.1.0 • Published 7 years ago

tumblrsnek v0.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

tumblrsnek

This is my first try to do something with classes in JS, so this package is shit i guess.

It is also pretty useless but I wanted to try it out :)

Install it with npm install --sve tumblrsnek

Use:

const tumblrsnek = require('tumblrsnek');
const randomPost = new tumblrsnek.Client({
    link: '',   // The URL to the tumblr blog (example: cool.tumblr.com) (use without http)
    maxPosts: 0, // the posts available
    apiKey: ''  // Tumblr API key
});

Getting a result: randomPost.randomPost().then(url => console.log(url));