mma-api
mma-api copied to clipboard
MMA Fighter API in NodeJS
Hey, I just tried for the first time using your api, but I could not do it correctly. This is my code in React: ``` import React from "react"; import...
I'm not sure if you're aware, but there are 6 vulnerabilities found here: https://nodesecurity.io/check/mma I would suggest switching from `request` to `node-fetch` if possible.
This will prevent the app from sending an 'undefined' query to request causing it to crash. Instead the API will return fighter 'null' so any app can handle that gracefully.
Hey running this code with your test ```js var mma = require('mma'); mma.fighter("Jon Jones", function(data) { console.log(data)}); ``` Is returning ``` home/danielokita/Scripts/mma/node_modules/request/index.js:44 throw new Error('undefined is not a valid uri...