🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

fortune-messages

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortune-messages

A simple fortune cookie messages generator.

1.2.2
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

fortune-messages

A simple fortune cookie messages generator.

Installation

npm install fortune-messages

Usage

Simple

import fortune from 'fortune-messages';

console.log(fortune());

Filter (include) Categories

import fortune from 'fortune-messages';

// Get random bad advice
console.log(fortune(['bad-advice']));

Filter (exclude) Categories

import fortune from 'fortune-messages';

// Get random inspirational message that is not funny
console.log(fortune(['inspirational'], ['funny']));

Fortune Categories

A fortune message has one or more of the following categories to help you find the right message for the right moment.

  • inspirational
  • funny
  • wise
  • ego
  • bad-advice
  • love
  • fortune

Contributing

Pull requests for fortunes or code changes are welcome.

FAQs

Package last updated on 29 Sep 2023

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