Skip to content

A function for crafting thoughts that don't age well 🤓

License

Notifications You must be signed in to change notification settings

chantastic/myopic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myopic 🤓

A function for crafting thoughts that don't age well

usage

myopic("The render prop pattern", "cloneElement")
// => "The render prop pattern replaces cloneElement. I don't see any reason to use cloneElement anymore."

myopic("The new Context API", "Redux")
// => "The new Context API replaces Redux. I don't see any reason to use Redux anymore."

Here's the code that powers it:

function myopic(thingIveJustLearned, thingIveUsed) {
  return `${thingIveJustLearned} replaces ${thingIveUsed}. I don't see any reason to use ${thingIveUsed} anymore.`;
}

installation

Node

npm i myopic

Module

import myopic from "myopic";

CommonJS

const myopic = require("myopic");

Browser

<script src="https://unpkg.com/myopic"></script>

About

A function for crafting thoughts that don't age well 🤓

Resources

License

Stars

Watchers

Forks

Packages

No packages published