not-an-aardvark / snoowrap

A JavaScript wrapper for the reddit API
MIT License
1.02k stars 127 forks source link

This project is almost dead! #330

Closed iMrDJAi closed 3 years ago

iMrDJAi commented 3 years ago

Let's think about it for a moment, comparing this project to PRAW will make us realize how far it is from being a fully-featured wrapper for the Reddit API! The development is slow, tons of issues are not resolved and many features are missing, especially the undocumented endpoints that are already supported by PRAW. The code-base itself is good, it only needs a push forward, we can just port functions from PRAW to JavaScript and they will work like a charm:

# PRAW
class Subreddit(MessageableMixin, SubredditListingMixin, FullnameMixin, RedditBase):
    # ...
    def _convert_to_fancypants(self, markdown_text: str) -> dict:
        text_data = {"output_mode": "rtjson", "markdown_text": markdown_text}
        return self._reddit.post(API_PATH["convert_rte_body"], text_data)["output"]
    # ...
//  snoowrap
const Subreddit = class Subreddit extends RedditContent {
  // ...
  async _convert_to_fancypants(markdown_text) {
      const text_data = {"output_mode": "rtjson", "markdown_text": markdown_text}
      const response = await this._post({
          uri: "api/convert_rte_body_format",
          form: text_data
      })
      return response.output
  }
  // ...
}

More people should contribute to this project, personally I'm going to open some pull requests soon to add more features.