0.1.1 • Published 6 years ago
thankful v0.1.1
Thankful.js
Expressing gratitude with class
- Record a list of people you are thinking of.
- Thank them all at once.
- Thank individuals for specific reasons
Usage
// ES6
import Thankful from "thankful";
// CommonJS
const Thankful = require("thankful");
// Usage
const I = new Thankful();
I.amThinkingOf("My wife");
I.amThinkingOf("My daughter");
I.amThinkingOf("My parents");
I.amThinkingOf("My friends");
I.thankYouAll();
I.thank("my wife").for("loving me and being my partner");
I.thank("my daughter").for("being amazing and creative");
Thankful.js has three methods:
amThinkingOf(name: string) => void
Adds someone to the list being thought of.
thankYouAll() => void
Thanks everyone via console.log you are thinking of for being in your life.
thank(name: string).for(reason: string) => void
Thanks the given person via console.log for the provided reason
Example
const I = new Thankful();
I.amThinkingOf("My wife");
I.amThinkingOf("My daughter");
I.amThinkingOf("My parents");
I.amThinkingOf("My friends");
I.thankYouAll();
/*
* Thank you, My wife, for being in my life!
* Thank you, My daughter, for being in my life!
* Thank you, My parents, for being in my life!
* Thank you, My friends, for being in my life!
*/
I.thank("my wife").for("loving me and being my partner");
// Thank you, my wife, for loving me and being my partner!
I.thank("my daughter").for("being amazing and creative");
// Thank you, my daughter, for being amazing and creative!
License
This project is MIT Licensed.