Socket
Socket
Sign inDemoInstall

devrant

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devrant - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

package.json
{
"name": "devrant",
"version": "0.0.2",
"description": "Unofficial wrapper for the public product hunt API.",
"version": "0.0.3",
"description": "Unofficial wrapper for the public devRant API.",
"main": "src/index.js",

@@ -6,0 +6,0 @@ "engines": {

@@ -5,3 +5,3 @@ # devRant

[npm-image]: https://img.shields.io/badge/npm-v0.0.2-blue.svg
[npm-image]: https://img.shields.io/badge/npm-v0.0.3-blue.svg
[npm-url]: https://www.npmjs.com/package/devrant

@@ -110,23 +110,21 @@ [travis-image]: https://travis-ci.org/danillouz/devrant.svg?branch=master

```json
[
{
"id": 43511,
"text": "when people think you know everything...",
"num_upvotes": 38,
"num_downvotes": 1,
"score": 37,
"created_time": 1464610498,
"attached_image": {
"url": "https://d1fvlyhrbsf219.cloudfront.net/devrant/rant/r_43511_uQDW4.jpg",
"width": 600,
"height": 300
},
"num_comments": 5,
"tags": [ ],
"vote_state": 0,
"user_id": 15601,
"user_username": "Mung00se",
"user_score": 272
}
]
{
"id": 43511,
"text": "when people think you know everything...",
"num_upvotes": 38,
"num_downvotes": 1,
"score": 37,
"created_time": 1464610498,
"attached_image": {
"url": "https://d1fvlyhrbsf219.cloudfront.net/devrant/rant/r_43511_uQDW4.jpg",
"width": 600,
"height": 300
},
"num_comments": 5,
"tags": [ ],
"vote_state": 0,
"user_id": 15601,
"user_username": "Mung00se",
"user_score": 272
}
```

@@ -260,5 +258,10 @@

## Example 1
Fetch rant with id `43511`:
## Examples
- [Rant](#fetch-rant-with-id-43511)
- [Rants with Options](#fetch-10-rants-of-type-top-and-skip-the-first-10)
- [Rants Default](#fetch-50-rants-of-type-algo-and-skip-0-by-using-default-behavior)
- [Search](#fetch-all-rants-that-match-the-search-term-javascript)
- [Profile](#fetch-the-profile-of-the-devrant-user-with-username-dfox)
#### Fetch rant with id `43511`
```javascript

@@ -279,5 +282,3 @@ 'use strict';

## Example 2
Fetch `10` rants of type `top` and skip the first `10`:
#### Fetch `10` rants of type `top` and skip the first `10`
```javascript

@@ -300,6 +301,3 @@ const devRant = require('devrant');

## Example 3
Fetch `50` rants of type `algo` and skip `0` by using
default behavior:
#### Fetch `50` rants of type `algo` and skip `0` by using default behavior
```javascript

@@ -322,5 +320,3 @@ 'use strict';

## Example 4
Fetch all rants that match the search term `javascript`:
#### Fetch all rants that match the search term `javascript`
```javascript

@@ -343,6 +339,3 @@ 'use strict';

## Example 5
Fetch the profile of the devRant user with username
`dfox`:
#### Fetch the profile of the devRant user with username `dfox`
```javascript

@@ -349,0 +342,0 @@ 'use strict';

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