Socket
Socket
Sign inDemoInstall

crypto-news-api

Package Overview
Dependencies
27
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.17 to 1.0.18

2

package.json
{
"name": "crypto-news-api",
"version": "1.0.17",
"version": "1.0.18",
"description": "API to get a crypto newsfeed in your app",

@@ -5,0 +5,0 @@ "main": "dist/node/index.node.js",

@@ -35,2 +35,17 @@ CryptoControl Crypto News API

.catch(error => console.error(error))
Api.getTopNewsByCoin("bitcoin")
.then(articles => console.log(articles))
.catch(error => console.error(error))
Api.getLatestTweetsByCoin("bitcoin")
.then(tweets => console.log(tweets))
.catch(error => console.error(error))
Api.getLatestRedditPostsByCoin("bitcoin")
.then(redditPosts => console.log(redditPosts))
.catch(error => console.error(error))
```

@@ -47,2 +62,17 @@

.catch(function (error) { console.log(error) })
Api.getTopNewsByCoin("bitcoin")
.then(function (articles) { console.log(articles) })
.catch(function (error) { console.log(error) })
Api.getLatestTweetsByCoin("bitcoin")
.then(function (tweets) { console.log(tweets) })
.catch(function (error) { console.log(error) })
Api.getLatestRedditPostsByCoin("bitcoin")
.then(function (redditPosts) { console.log(redditPosts) })
.catch(function (error) { console.log(error) })
```

@@ -57,4 +87,19 @@

Api.getTopNews()
.then(articles => console.log(articles))
.catch(error => console.error(error))
.then(function (articles) { console.log(articles) })
.catch(function (error) { console.log(error) })
Api.getTopNewsByCoin("bitcoin")
.then(function (articles) { console.log(articles) })
.catch(function (error) { console.log(error) })
Api.getLatestTweetsByCoin("bitcoin")
.then(function (tweets) { console.log(tweets) })
.catch(function (error) { console.log(error) })
Api.getLatestRedditPostsByCoin("bitcoin")
.then(function (redditPosts) { console.log(redditPosts) })
.catch(function (error) { console.log(error) })
</script>

@@ -61,0 +106,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc