Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redddit

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redddit - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

index.js
const needle = require('needle');
exports.topPosts = (sub,cb) => {
if (!sub) {
var sub = "all";
}
var opt = { headers: {

@@ -24,2 +27,6 @@ "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",

exports.getPost = (post,cb) => {
if (!post) {
console.error("post param required");
return false;
}
var opt = { headers: {

@@ -26,0 +33,0 @@ "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",

5

package.json
{
"name": "redddit",
"version": "1.0.0",
"version": "1.0.1",
"description": "reddit api without any authentication!",

@@ -25,3 +25,4 @@ "main": "index.js",

"needle": "^2.5.0"
}
},
"devDependencies": {}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc