npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

success-motivational-quotes

v1.0.8

Published

Get best motivational quotes for success. This package contains more than 2500 quotes from different famous authors.

Downloads

695

Readme

Success Motivational Quotes

A simple but amazing package having more than 2000 motivational quotes. Get amazing quotes categorized by author names and categories.

Motivation

These quotes were collected for a mobile app I created with React Native. After the app developed, I realized there should be a package for quotes which can be used to get famous quotes. If you want to download the app, here is the link for android users.

Check this repository for source code of the package.

Getting started

Installation

 npm install success-motivational-quotes

Usage

  • getAllQuotes() method returns an array of objects containing all the quotes.
const quotes = require("success-motivational-quotes");
console.log(quotes.getAllQuotes());
[
  {
    "id": "0",
    "category": "Albert Einstein",
    "body": "Life is like riding a bicycle. To keep your balance you must keep moving.",
    "by": "Albert Einstein"
  },
  {
    "id": "1",
    "category": "Albert Einstein",
    "body": "The important thing is not to stop questioning. Curiosity has its own reason for existing.",
    "by": "Albert Einstein"
  },
  {
    "id": "2",
    "category": "Albert Einstein",
    "body": "No problem can be solved from the same level of consciousness that created it.",
    "by": "Albert Einstein"
  }
]
  • getAllCategories() method returns an array of categories.
const quotes = require("success-motivational-quotes");
console.log(quotes.getAllCategories());
[
  "Albert Einstein",
  "Donald Trump",
  "Abraham Lincoln",
  "Anthony Robbins",
  "Brian Tracey",
  "Dale Carnegie",
  "Dennis Waitley",
  "Earl Nightingale",
  "Jim Rohn",
  "Mark Victor Hansen",
  "Napoleon Hill",
  "Norman Vincent Peale",
  "Ralph Waldo Emerson",
  "Robert H. Schuller",
  "Robert T. Kiyosaki",
  "Thomas Edison",
  "Thomas Jefferson",
  "W. Clement Stone",
  "Zig Ziglar",
  "Taking Action",
  "Adversity",
  "Attitude",
  "Think Big",
  "Goals",
  "Learning",
  "Persistence",
  "Preparation",
  "Taking Risks",
  "Work",
  "Motivational",
  "Bill Gates",
  "Elon Musk",
  "Leadership",
  "Business",
  "Inspirational",
  "Success",
  "New",
  "Random"
]
  • getQuotesByCategory(category) method returns an array of objects having quotes of that category. Please note that category is case sensitive.
const quotes = require("success-motivational-quotes");
console.log(quotes.getQuotesByCategory("Success"));
[
  {
    "id": "1001",
    "category": "Success",
    "body": "The genius of money is not knowing everything, but rather, surrounding yourself with those who do.",
    "by": " Glen Purdy"
  },
  {
    "id": "1002",
    "category": "Success",
    "body": "I believe that the only courage anybody ever needs is the courage to follow your own dreams.",
    "by": "Oprah Winfrey"
  }
]
  • getQuotesByAuthor(authorName) method returns an array of objects having quotes of a specific author. Please note that authorName is case sensitive.
const quotes = require("success-motivational-quotes");
console.log(quotes.getQuotesByAuthor("Albert Einstein"));
[
  {
    "id": "0",
    "category": "Albert Einstein",
    "body": "Life is like riding a bicycle. To keep your balance you must keep moving.",
    "by": "Albert Einstein"
  },
  {
    "id": "1",
    "category": "Albert Einstein",
    "body": "The important thing is not to stop questioning. Curiosity has its own reason for existing.",
    "by": "Albert Einstein"
  }
]
  • getTodaysQuote() method returns an object containing a random quote from the quotes array.
const quotes = require("success-motivational-quotes");
console.log(quotes.getTodaysQuote());
{
  "id": "1002",
  "category": "Success",
  "body": "I believe that the only courage anybody ever needs is the courage to follow your own dreams.",
  "by": "Oprah Winfrey"
}
  • getQuoteById(quoteId) method returns a quote with the id passed as parameter.
const quotes = require("success-motivational-quotes");
console.log(quotes.getQuoteById(56));
{
  "id": "56",
  "category": "Anthony Robbins",
  "body": "It not knowing what to do, it's doing what you know.",
  "by": "Anthony Robbins"
}

Want to contribute?

I would love to merge all pull requests if someone wants to contribute to this package. Please make sure all quotes are in english language.

License

MIT ©

Thanks!

Thank you for being here! Please tag me on twitter if you develop something with this package.