Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@vedantsharma/reddit
Advanced tools
Reddit Library for Nodejs and Typescript
Weekly downloads
Readme
@vedantsharma/reddit is a nodejs library coded using javascript to make work for coders who are using the raw reddit api to make there lives easier. Thanks to Ric and Sam for helping me remove the irrelevant part and fixing bugs.
If you guys face errors while using this library then make an issue. I'm currently busy with exams and will fix them later.
npm install @vedantsharma/reddit
The parameters are optional. So... the default subreddits are "dankmemes" and "wholesomememes".
Below are the Given Methods.
getRandom();
getLast();
getFirst();
before using all this, you have to set up the instances, which is by doing the given:
import {Scraper} from "@vedant/reddit";
const a = new Scraper();
import {Scraper} from "@vedantsharma/reddit";
const manager = new Scraper();
const post = await manager.getFirst('funny'); // Leaving this empty would use the default subreddits as given on
console.log(post); // Print out the Reddit Post Object.
console.log(post.title); // Print out the title of the reddit post.
const lib = require("@vedantsharma/reddit");
const manager = new lib.Scraper();
manager.getFirst('funny').then(post => {
console.log(post);
});
FAQs
Reddit Library for Nodejs and Typescript
The npm package @vedantsharma/reddit receives a total of 11 weekly downloads. As such, @vedantsharma/reddit popularity was classified as not popular.
We found that @vedantsharma/reddit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.