ilyamkin / dev-to-js

🌐 A universal client for the Dev.to API written in Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dev-to-js

dev-to-js

A tiny, universal client for the Dev.to API written in Typescript.

dev-to-js gzip size brotli size

✨ Features:

  • Tiny <1KB size gzip
  • Works in Node.js and in Browser
  • Built-in Typescript support

πŸ”§ Installation

npm i dev-to-js

🌐 Usage

Import dev-to-js module in your project and initialize it with your apiKey.

import DevToJS from 'dev-to-js'

const DevToClient = new DevToJS({ apiKey: '%apiKey%' })

DevToClient.getMyArticles().then((data) => {
    console.log(data)
})

DevToClient.getFollowers().then((data) => {
    console.log(data)
})

About

🌐 A universal client for the Dev.to API written in Typescript

License:MIT License


Languages

Language:TypeScript 97.8%Language:JavaScript 2.2%