1.0.4 • Published 8 years ago

partyparrot v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

partyparrot

Add gif with party parrot to yuor project for start party!

Build Status

Install

npm install partyparrot

Usage

import parrot, {list as parrots} from 'partyparrot'

const img1 = document.getElementById('myImage1')
const img2 = document.getElementById('myImage2')

parrot()
.then(gifUrl => img1.src = gifUrl)
.catch(error => console.log(error))


parrot('🍔 Parrot')
.then(gifUrl => img2.src = gifUrl)
.catch(error => console.log(error))

parrots()
.then(listOfParrots => console.log(listOfParrots))
.catch(error => console.log(error))

Methods

parrot

Return promise, which resolve with git link.

Params

  • name - name of parrot. Examples: 'Shuffle Parrot', 'Slow Parrot', '🍕 Parrot'. Default value is 'Parrot'.

list

Return array of objects, which contain info about parrot

[
    {
        "gif": "parrot.gif",
        "name": "Parrot"
    },
    {
        "gif": "middleparrot.gif",
        "name": "Middle Parrot"
    },
    ...
]
1.0.4

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago