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

trendwear

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trendwear

:green_book: library to deal with Google Trends and its most discussed topics

  • 1.2.3
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

trendwear

:green_book: library to deal with Google Trends and its most discussed topics

Example

import Trendwear from "trendwear"

const trends = Trendwear("US") // Too: US, GB, BR, JP...

trends.getSchemaFromTrendings()
  .then((res) => console.log(res.items))
  .catch((error) => new Error(error))

With async function

const { status, feed, items } = await trends.getSchemaFromTrendings()

// Get info
console.log('status', status)
console.log('feed', feed.title)
console.log('items', items.length)

Result

{
  status:"ok",
  feed: {
    url: "https://trends.google.com/trends/trendingsearches/daily/rss?geo=US",
    title: "Daily Search Trends",
    link: "https://trends.google.com/trends/trendingsearches/daily?geo=US",
    author: "",
    description: "Recent searches",
    image: ""
  },
  items: [
    {
      title: "Salma Hayek",
      pubDate: "2021-02-04 15:00:00",
      link: "https://trends.google.com/trends/trendingsearches/daily?geo=US#Salma%20Hayek",
      guid: "672633e4373a64063455d11fced0c6a0",
      author: "",
      thumbnail: "",
      description: "",
      content: "",
      enclosure: {},
      categories:[]
    }
    // ...
  ]
}

FAQs

Package last updated on 04 Feb 2021

Did you know?

Socket

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.

Install

Related posts

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