furaffinity
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    fa-node

    FurAffinity wrapper for Node.js

    Usage

    To get the most recent content:

    import { Recent, Type, Login } from 'furaffinity';
    // or
    let { Recent, Type, Login } = require('furaffinity');
     
    // to allow all results to be accessible, add your cookies
    Login("cookie_a", "cookie_b");
     
    Recent(Type.Artwork).then(res => {
      // res is an array of Result(s)
      res[0].getSubmission().then(submission => {
        // submission is a Submission
      });
    });

    Searching for content:

    import { Search, Type } from 'furaffinity';
     
    Search('search query', { /** SearchOptions */ type?, rating? }).then(res => {
      // res is an array of Result(s)
      res[0].getSubmission().then(submission => {
        // submission is a Submission
      });
    });

    Looking up a specific submission:

    import { Submission } from 'furaffinity';
     
    Submission('1234567890').then(res => {
      // res is a Submission
    });

    Keywords

    Install

    npm i furaffinity

    DownloadsWeekly Downloads

    12

    Version

    3.0.0

    License

    ISC

    Unpacked Size

    36.2 kB

    Total Files

    10

    Last publish

    Collaborators

    • mcrocks999