A JavaScript Utility… Library?

I complied a list of useful JavaScript stuff into a Github repository.
This repository includes code for functions like:

Mix (Deep assign library that works with accessors).
Getting translate values
Getting keyboard focusable elements
Normalizing butt…


This content originally appeared on Zell Liew and was authored by Zell Liew

I complied a list of useful JavaScript stuff into a Github repository.

This repository includes code for functions like:

And many others.

You can install the entire library with npm.

npm install @zellwk/javascript

Why this format?

I prefer publishing JavaScript stuff into one repository instead of splitting them into many small ones because:

  1. It’s easier for me to maintain – everything is in one place
  2. It’s easier for me to install – again, everything is in one place. No need to npm install a bajillion amount of libraries.

I was hesitant about releasing this library at first. It felt stupid. I thought nobody wouldn’t use this collection anyway. I thought people prefer the current way where we install one small package each time with npm.

But Shawn Wang convinced me otherwise. He said it’s okay as long as the library is treeshakable. Which makes sense. Shawn also told me Rich Harris had a similar thing called Yootils.

This idea gave me the permission to release this repository publicly, which is why I’m sharing this with you today. If you find this collection useful, please also give some credit to Shawn for expanding my thoughts.


This content originally appeared on Zell Liew and was authored by Zell Liew


Print Share Comment Cite Upload Translate
APA
Zell Liew | Sciencx (2022-12-01T19:58:14+00:00) » A JavaScript Utility… Library?. Retrieved from https://www.scien.cx/2020/10/07/a-javascript-utility-library/.
MLA
" » A JavaScript Utility… Library?." Zell Liew | Sciencx - Wednesday October 7, 2020, https://www.scien.cx/2020/10/07/a-javascript-utility-library/
HARVARD
Zell Liew | Sciencx Wednesday October 7, 2020 » A JavaScript Utility… Library?., viewed 2022-12-01T19:58:14+00:00,<https://www.scien.cx/2020/10/07/a-javascript-utility-library/>
VANCOUVER
Zell Liew | Sciencx - » A JavaScript Utility… Library?. [Internet]. [Accessed 2022-12-01T19:58:14+00:00]. Available from: https://www.scien.cx/2020/10/07/a-javascript-utility-library/
CHICAGO
" » A JavaScript Utility… Library?." Zell Liew | Sciencx - Accessed 2022-12-01T19:58:14+00:00. https://www.scien.cx/2020/10/07/a-javascript-utility-library/
IEEE
" » A JavaScript Utility… Library?." Zell Liew | Sciencx [Online]. Available: https://www.scien.cx/2020/10/07/a-javascript-utility-library/. [Accessed: 2022-12-01T19:58:14+00:00]
rf:citation
» A JavaScript Utility… Library? | Zell Liew | Sciencx | https://www.scien.cx/2020/10/07/a-javascript-utility-library/ | 2022-12-01T19:58:14+00:00
https://github.com/addpipe/simple-recorderjs-demo