Giter VIP home page Giter VIP logo

bookmark-github-stars's Introduction

Github Stars as bookmarks

This retrieves github starred repos' URLs of a given user and exports them as HTML bookmarks export file, so that you can import it to your browser or your any favorite online bookmarking sites which supports HTML file imports.

Usage

Tip: Head over to https://22940dev.github.io/bookmark-github-stars/ and get started.

To use this in a node, use module.js file, require the module file and use getAllStarredRepos function:

getAllStarredRepos('username-here',function(err,html) {
    if(err) {
        console.log("Error: " + err);
    }

    // You have your bookmarks html content in html variable
    // You can save it or use it however you like
  });

For using this in browser, we have converted this module using browserify. Just download bookmark-github-stars-browser.js file and use it the same way you may use with node. After including this with script tag, you can use this with like this:

<script type="text/javascript" src="bookmark-github-stars-browser.js"></script>

<script>
bookmarkGithubStars.getAllStarredRepos(user, function(err, data) {

    if (err) {
        // An error
        console.log("There is an error");
        return;
    }

    // You have your bookmarks html content in html variable
    // You can save it or use it however you like

});
</script>

Check index.html for example.

Build

The main file is module.js which contains the source code.

To generate the browser js file, use the below code.

If you do not have browserify install, download it first, else skip this step.

npm install -g browserify

Now generate bookmark-github-stars-browser.js using module.js file:

browserify module.js --standalone bookmarkGithubStars -o bookmark-github-stars-browser.js

Done.

bookmark-github-stars's People

Contributors

22940dev avatar kirtan403 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.