UNPKG

tmdb-interface

Version:

This is a Node.js wrapper of TMDB API. We apply chain-style design on it, which make it more semantic and functional.

12 lines 334 B
module.exports = (self) => { return (Data) =>{ return async () => { try { const result = (await self.http.get(self.url)).data return Object.create(Data).init(result, self.type) } catch (error) { throw error; } } } }