Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
README syntax highlights via GFM
Browse files Browse the repository at this point in the history
  • Loading branch information
kaimallea committed Jul 7, 2011
1 parent 382f213 commit 183ffea
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@

## Usage

var googl = require('googl');

// Shorten a long url and output the result
googl.shorten('http://www.google.com/', function (shortUrl) {
console.log(shortUrl);
});


// Set a developer key (see http://goo.gl/4DvFk for more info.)
googl.setKey('aBcDeFGhIjKLMnOPqRsT');


// Expand a goo.gl url and output the result
googl.expand('http://goo.gl/fbsS', function (longUrl) {
console.log(shortUrl);
});
```javascript
var googl = require('googl');

// Shorten a long url and output the result
googl.shorten('http://www.google.com/', function (shortUrl) {
console.log(shortUrl);
});


// Set a developer key (see http://goo.gl/4DvFk for more info.)
googl.setKey('aBcDeFGhIjKLMnOPqRsT');


// Expand a goo.gl url and output the result
googl.expand('http://goo.gl/fbsS', function (longUrl) {
console.log(shortUrl);
});
```

0 comments on commit 183ffea

Please sign in to comment.