🧶 Yarn 3.0
The new version of the Yarn package manager for JavaScript is here! Now you can download the most popular packages right on your desk.
Usage
- Place the ball of yarn for the package you’d like (
reactis cyan,lodashis pink,chalkis yellow, etc) in front of your computer. - Watch the selected packages’ source code get printed out on your nearest printer. Yarn 3.0 will first minify it, then re-expand it with Prettier, for maximum readability.
- Build your project right at your desk with all the code right in front of you!
Yes, this is a joke
I made it at the NYU STUPID SHIT NO ONE NEEDS & TERRIBLE IDEAS HACKATHON 2020. I solemnly swear I was up to no good. It’s ~150 lines of code.
Note: I realize this project isn’t using Yarn for its dependencies. On my computer, Yarn had an issue building the node-native-printer module, & npm worked, & with 12-hour hackathon time constraints, I didn’t deal with fixing Yarn. Sorry.
How to run this yourself
- Clone the repo,
cd,npm i,npm start - Start ngrok:
ngrok http 3000 - Open the ngrok link on some device on your desk with a webcam (I used an iPad for the demo)
- Put cyan/yellow/pink objects in front of your camera
- Keep refilling your printer’s paper supply
MIT License
