node-swapi
Node wrapper around SWAPI - http://swapi.co/
Requirements
- node: ">6.0.0"
Installation
npm install node-swapi
Usage
Require a library:
// Require entire libraryconst SWAPI = ; // or just a particular part, e. g. personconst person = ;
Request data from the server
// get list of people SWAPIpeople // get person with id 1SWAPIpeople // search for Luke SkywalkerSWAPIpeople