LucianBuzzo / discourser

Discourse API Client written in TypeScript for Node.js and Browser environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discourser

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Discourser is an API Client for the Discourse API written in TypeScript for Node.js and Browser environments.

Its special features are:

  • TypeScript Types
  • Respecting Rate Limits
  • Optional Heavy Caching
  • Post Modifiers (can be used for global find and replace across all posts on the forum)

It is currently under heavy construction, however is being used in production, and will eventually stabilise.

The CLI executable is currently only for Bevry use. Eventually the Bevry specific parts of it will be abstracted out. Do not use the CLI currently in your own projects.

Usage

Complete API Documentation.

Install

npm

Install Globally

  • Install: npm install --global discourser
  • Executable: discourser

Install Locally

  • Install: npm install --save discourser
  • Executable: npx discourser
  • Import: import pkg from ('discourser')
  • Require: const pkg = require('discourser').default

pika

<script type="module">
    import pkg from '//cdn.pika.dev/discourser/^1.1.0'
</script>

unpkg

<script type="module">
    import pkg from '//unpkg.com/discourser@^1.1.0'
</script>

jspm

<script type="module">
    import pkg from '//dev.jspm.io/discourser@1.1.0'
</script>

This package is published with the following editions:

  • discourser/source/index.ts is TypeScript source code with Import for modules
  • discourser/edition-browsers/index.js is TypeScript compiled against ES2019 for web browsers with Import for modules
  • discourser aliases discourser/edition-es2018/index.js
  • discourser/edition-es2018/index.js is TypeScript compiled against ES2018 for Node.js with Require for modules

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

  • Benjamin Lupton

Sponsors

No sponsors yet! Will you be the first?

GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

  • Copyright © 2020+ Benjamin Lupton

and licensed under:

About

Discourse API Client written in TypeScript for Node.js and Browser environments

License:Other


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%