Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

theuves-projects/migre-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

migre-me

Encurtar URLs no Migre.me.

⚠️ Requer internet para funcionar.

Instalação

Instale com npm install migre-me.

Uso

Veja um exemplo:

var migreMe = require("migre-me");

migreMe("https://github.com/", function (err, data) {
  console.log(err || data);
});

Se não houver erro, o exemplo acima retornará algo como:

{ erro: 0,
  info: 'OK',
  criado_em: '2016-02-11 12:23:47',
  url: 'https://github.com/',
  id: 'sXgAv',
  migre: 'http://migre.me/sXgAv',
  ping: 'FAIL',
  consumo_api_hora: 4,
  tempo: 0.0064628124237061 }

Licença

MIT