UNPKG

i-want-a-name

Version:
84 lines (70 loc) β€’ 2.57 kB
<h1 align="left">I want a name</h1> <p align="left"> <a href="https://nodei.co/npm/i-want-a-name/"><img src="https://nodei.co/npm/i-want-a-name.png"></a> </p> <p align="left"> <a href="https://github.com/buzzzlightyear/i-want-a-name/pulls"> <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/buzzzlightyear/i-want-a-name"> </a> <a href="https://github.com/buzzzlightyear/i-want-a-name/commits/master"> <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/buzzzlightyear/i-want-a-name"> </a> <a href="https://github.com/buzzzlightyear/i-want-a-name/graphs/contributors"> <img alt="GitHub contributors" src="https://img.shields.io/github/contributors/buzzzlightyear/i-want-a-name?color=%236aeefc"> </a> <a href="#"> <img src="https://img.shields.io/badge/status-active-success.svg" /> </a> <a href="https://github.com/buzzzlightyear/i-want-a-name/blob/master/LICENSE"> <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" target="_blank" /> </a> <a href="#"> <img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/buzzzlightyear/i-want-a-name?style=plastic"> </a> <a href="https://nodei.co/npm/i-want-a-name/"> <img alt="npm" src="https://img.shields.io/npm/dw/i-want-a-name?color=%23924ff7"> </a> </p> ## πŸ“¦ Installation ```bash npm i i-want-a-name ``` ## πŸ’½ Import ```javascript const iWantAName = require('i-want-a-name') ``` ## πŸ•ΉοΈ Usage ### Boy's or Girl's name ```javascript iWantAName.boy().then(name => console.log(name)) // Steven O'Bryant iWantAName.girl().then(name => console.log(name)) // Kathrina Saffron ``` ### Planet's name ```javascript iWantAName.planet().then(name => console.log(name)) // Pluto ``` ### Country's name ```javascript iWantAName.country().then(name => console.log(name)) // Netherlands ``` ### City's name ```javascript iWantAName.city().then(name => console.log(name)) // Puerto Rico ``` ## πŸ› οΈ Built Using <a name = "built_using"></a> - [Node.js](https://nodejs.org/en/) - Server Environment - [Axios](https://github.com/axios/axios) - Promise based HTTP client for the browser and node.js ## πŸ¦Έβ€β™‚οΈ Contributers <a name = "contributors"></a> <table> <tbody> <tr> <td align="center"> <a href="https://github.com/buzzzlightyear"> <img width="150" height="150" src="https://avatars2.githubusercontent.com/u/36703601?s=460&v=4"> </br> Steven Soekha </a> </td> </tr> <tbody> </table>