@webeleon/dev.to
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

unofficial API client for dev.to API

Coverage Status code style: prettier Test and coverage

This repository is not related to the dev.to organisations.

Getting started

npm i @webeleon/dev.to

Use the all inclusive client

import { DevTo } from '@webeleon/dev.to';

const devtToClient = new DevTo('API KEY');

devtToClient
  .articleApi
  .getUserPublishedArticle()
  .then((articles: Article[]) => {
    // do some stuff ;) 
  });

Use a specific client

import { ArticleApi } from '@webeleon/dev.to';

const articleApiClient = new ArticleApi('API _KEY');

articleApiClient
  .getUserPublishedArticle()
  .then((articles: Article[]) => {
    // do some stuff ;) 
  });

Dev.to API support

Work in progress.
At the moment only endpoint required for the site https://webeleon.dev are implemented
If you need more endpoints make a PR or create an Issue

Article

Useful Links

Readme

Keywords

Package Sidebar

Install

npm i @webeleon/dev.to

Weekly Downloads

1

Version

0.2.5

License

MIT

Unpacked Size

296 kB

Total Files

33

Last publish

Collaborators

  • julien_webeleon
  • bassochette