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

Latest commit

 

History

History
52 lines (35 loc) · 1.27 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.27 KB

🚧 The third-party API getdango.com is not available anymore.

dango

Travis Coveralls branch license

Search for emojis 🍕😋😍🐷.

Install

$ npm install --save dango

Usage

import dango from 'dango';

dango('pizza').then(items => {
  console.log(items);

  /*
  [ { score: 0.6858612895, text: '🍕' },
  { score: 0.02997607924, text: '😋' },
  { score: 0.02023460716, text: '😍' },
  { score: 0.010817755945, text: '🐷' },
  { score: 0.0093791456893, text: '👅' },
  { score: 0.0077837170102, text: '🙌' },
  { score: 0.007717252709, text: '😛' },
  { score: 0.0075424523093, text: '👌' },
  { score: 0.0074847843498, text: '❤' },
  { score: 0.0063261617906, text: '🍴' } ]
  */
});

API

dango(q)

Returns a Promise that resolves an array of items.

q

Type: String

A query to search for.

License

MIT © Vu Tran