nodeporn

A powerful Node.js lib to interact with the Reddit API

Usage no npm install needed!

<script type="module">
  import nodeporn from 'https://cdn.skypack.dev/nodeporn';
</script>

README

What is this?

A powerful Node.js lib to interact with the Reddit API

Getting Started

Requirements

  • Node.js >= 8.x

Installation

npm install nodeporn --save

Usage

Get Ass Pictures/Gifs

const nodeporn = require("node-porn");
const client = new nodeporn.Client();

client.nsfw.real
  .ass()
  .then((json) => {
    console.log(json);
    // outputs data with image url, possible source and other stuff
  })
  .catch((error) => {
    console.log(error);
    // outputs error
  });