0.1.1 • Published 7 years ago

dango v0.1.1

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

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