paint-brush
How You Can Build an API Client Library in JavaScriptby@ilyamkin
481 reads
481 reads

How You Can Build an API Client Library in JavaScript

by Ilya Lyamkin5mMay 1st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

API client is small, scalable, and works both in the browser and in Node.js. We'll go through five steps and come out with a clear plan on how to implement your own client. The best choice for a web project is Webpack, but our library is fairly small and simple, so I've chosen Rollup as base bundler together with Microbundle together with Typescript Mixins for easy setup. To make testing easier we can utilize the Nock library that conveniently mocks HTTP server for us.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - How You Can Build an API Client Library in JavaScript
Ilya Lyamkin HackerNoon profile picture
Ilya Lyamkin

Ilya Lyamkin

@ilyamkin

Senior Engineer @ Spotify

About @ilyamkin
LEARN MORE ABOUT @ILYAMKIN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Ilya Lyamkin HackerNoon profile picture
Ilya Lyamkin@ilyamkin
Senior Engineer @ Spotify

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Learnrepo
Pipfeed