rogeriopradoj/ghio.js

Convert urls of github.io pages into urls of repositories and vice versa

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:component

0.2.0 2014-03-26 14:12 UTC

This package is not auto-updated.

Last update: 2024-04-13 11:35:55 UTC


README

Build Status

Convert urls of github.io pages into urls of repositories and vice versa

Usage

    <!-- include script in your html -->
    <script src="ghio.js"></script>
    <!-- maybe use this tag for testing: <script src="https://raw.github.com/rogeriopradoj/ghio.js/master/ghio.js"></script> -->

    <script>
        // main github.io to repo
        var io            = 'http://adobe.github.io/';
        var repo          = Ghio.convert(io);
        console.log("Io: %s, Repo: %s", io, repo); // should print Io: http://adobe.github.io/, Repo: https://github.com/adobe/adobe.github.io in your browser log

    </script>

Package Managers

Testing

It's using QUnit for testing.

Just open test.html in your browser to see the magic taking place.

Changelog

0.2.0 - 2014-03-26

  • Include more Gulp tasks

0.1.0 - 2014-03-26

  • First public version

License

MIT