0.1.2 • Published 3 years ago

dev-to-js v0.1.2

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

✨ 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)
})