Skip to content

๐ŸŒ A universal client for the Dev.to API written in Typescript

License

Notifications You must be signed in to change notification settings

ilyamkin/dev-to-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

67 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published