Socket
Socket
Sign inDemoInstall

forem-client

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    forem-client

forem client in javascript


Version published
Maintainers
1
Install size
5.09 kB
Created

Readme

Source

forem-client

Zero dependencies Forem API client : use your own request client (axios, fetch ...)

To use the Client, see the documentation of https://developers.forem.com/api

API

Some routes are not not yet in the client.

Example

Code example :

import ForemClient from "forem-client"
import axios from "axios"; // import your own requester

const client = new ForemClient(axios); // your id is optional

const asyncMain = async () => {
    let req = await client.GET_getUserByUsername("n4n5"); // return user infos of n4n5
}
asyncMain();

License

Licensed under the MIT License - LICENSE

Keywords

FAQs

Last updated on 24 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc