https://github.com/chantastic/myopic
A function for crafting thoughts that don't age well 🤓
https://github.com/chantastic/myopic
Last synced: about 1 year ago
JSON representation
A function for crafting thoughts that don't age well 🤓
- Host: GitHub
- URL: https://github.com/chantastic/myopic
- Owner: chantastic
- License: mit
- Created: 2018-04-13T20:31:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T21:15:04.000Z (over 7 years ago)
- Last Synced: 2025-03-28T20:36:37.547Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 132 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# myopic 🤓
A function for crafting thoughts that don't age well
## usage
```js
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:
```js
function myopic(thingIveJustLearned, thingIveUsed) {
return `${thingIveJustLearned} replaces ${thingIveUsed}. I don't see any reason to use ${thingIveUsed} anymore.`;
}
```
## installation
### Node
```bash
npm i myopic
```
*Module*
```js
import myopic from "myopic";
```
*CommonJS*
```js
const myopic = require("myopic");
```
### Browser
```html
```