1.0.2 • Published 7 years ago
fscchan-js v1.0.2
fscchan-js
What's this?
A Wrapper for fscchan Imageboard for node.js Projects since fscchan doesn't implement JSON Read only API like other imageboards :(
Requirements
- node.js
- npm (for installing this package depedencies)
- Windows / OS X / Linux
Manual Installation
- Clone this repository
- npm install
- You're good to go, I Guess.
Functions
getCatalog(boards,callback(err,data))
Use this if you want to fetch thread catalog on a board, for example :
const fsc = require("fscchan-js");
const fscchan = new fsc();
fscchan.getCatalog('rj',function(err,data){
if(!err){
// do anything what you want here
}
}
getArchive(boards,callback(err,data))
Use this if you want to fetch archived thread(s) on a board, for example :
const fsc = require("fscchan-js");
const fscchan = new fsc();
fscchan.getArchive('n',function(err,data){
if(!err){
// do anything what you want here
}
}
getThread(boards,threadID,callback(err,data))
Use this if you want to get Thread data (including replies) from a board with described ID, for example :
const fsc = require("fscchan-js");
const fscchan = new fsc();
fscchan.getThread('gim','1793',function(err,data){
if(!err){
// do anything what you want here
}
});