New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@divyanshu013/inspirational-quotes

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@divyanshu013/inspirational-quotes

Get inspired!

  • 1.0.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
Logo

Inspirational Quotes

Get inspired!

Installation

yarn add @divyanshu013/inspirational-quotes

Usage

Check out all the existing quotes or the random quote demo.

Following exports are available from the module:

  • getAll() - returns all quotes
  • getRandom() - returns a random quote

The result is in the following shape:

{
	"quote": "Always bet on JavaScript!",
	"author": "Brendan Eich"
}

Some quotes also have a source key. For example:

{
	"quote": "Life moves pretty fast. If you don’t stop and look around once in a while, you could miss it.",
	"author": "Ferris Bueller",
	"source": "Ferris Bueller’s Day Off"
}

Example

// Use require or import, either works
const { getAll, getRandom } = require('@divyanshu013/inspirational-quotes');

console.log('All quotes', getAll());
console.log('A random quote', getRandom());

Author

Attributions

Icons made by DinosoftLabs from www.flaticon.com

FAQs

Package last updated on 20 Oct 2022

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