Have ideas to improve npm?Join in the discussion! »

people-in-space

1.0.1 • Public • Published

People In Space

A Simple package to get the names of people currently in space from This Useful API This is basically a demo package which I created to learn and walk through the steps of creating and publishing packages on NPM.

If however you still want to download and run it, here is some sample code on how to use it.

 
/*Requiring the Pacakge alone will make a fetch request to the  above mentioned API  
  If successful, it will return an object containing the `count` and `people` property.
    count => Total Count of people currently in space
    people => An array containing names of People currently in space
*/
const spacePeople = require("people-in-space");
 
spacePeople
        .then(resp => console.log(resp.people));

Install

npm i people-in-space

DownloadsWeekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

1.93 kB

Total Files

3

Last publish

Collaborators

  • avatar