dev-to-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    5
  • 0.1.1
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i dev-to-js

Weekly Downloads

6

Version

0.1.2

License

MIT

Unpacked Size

93 kB

Total Files

52

Last publish

Collaborators

  • ilyal