EPMC-API-NodeJS
NodeJS Api Package for EarthPolMC
How to use?
For installing use npm i epmc-api-nodejs
.
Now you need to do 2 things.
1.Make .env file in your project folder and fill it with api key. It should look something like that
APIKEY="YOURAPIKEYHERE"
2.Import the module with var epmc = require("epmc-api-nodejs");
Now you should be ready to play with the api.
Features
1.Town
epmc.town("London", "townBoard")
>>Eng-er-land!
2.Nation
epmc.nation("England", "capital")
>>London
More features coming soon! This is only demo