I'm getting back into that JavaScript life and I'd love some suggestions about some libs I might want to check out. If you're an author of something, please feel free to pitch me. 😄
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (58)
Over the years I have been trying to collect such modules which are not in the like light but very useful, check them out -> nmotw.in
P.S: Shameless plug: I run a weekly mailer of the same, feel free to subscribe. 🤗
Just wanted to say that that is a pretty cool list you're maintaining!
My company recently started using ramda. I don't know much about Haskell, but Ramda basically seems to bring all the functions from Haskell over, and encourages a functional approach to programming. It took me 2 days to really wrap my head around it, but I'm glad I did; it is sooooo cool. It'll beat you down the first few days you use it if you've never programmed functionally, and unfortunately there's not as many examples to follow when you Google stuff for it, but the docs are great and the community looks very helpful.
After I got the hang of it... I'm having so much fun.
Yeah, I've used ramda and I like it.
If you face "forgot password" problem too often and do not trust online password managers. Use this:
Chaabi: A dead simple CLI tool to encrypt text "locally"
producthunt.com/posts/chaabi
npmjs.com/package/chaabi
P.S.: I am the creator of the package
This might not be the best "back to the JavaScript" package, but it might be interesting for people working with eslint
lint-filter
The best scenario to use this is when you have a large project and you decide to introduce new ESLint rule and you only want to apply it on the new code, not change everything at once.
webpack. babel (you don't just use one babel package, there are many in tandem).
Emojic! Cause you know...emoji is life.
I haven't tried it but npx sounds cool! It can run your npm package binaries on the command-line!
Here are some good resources for npx. :smile:
npx is now ship with the latest version of npm medium.com/@maybekatz/introducing-...
NPX makes me happy. NPX + terminal aliases = Very rare need to globally install a package.
assert
but without the complexity of a library like chai.eslint - For your all your JavaScript linting needs
prettier - Code Formatter to enforce coding style consitency in your project
redux - If you're using react
redux-saga - for handling your async operations in redux
yarn
>npm
because npm 5 has been buggy for me & a lot of other people as well. Yarn never gives me any issues & it's so much faster. :-)I heard the msngr.js package is an awesome messaging library that helps with decoupling code. Some amazing person, who I don't know at all what so ever, put it together.
github.com/KrisSiegel/msngr.js
😄
+1 for Prettier
Chart.js for simple HTML5 charts when D3 seems like overkill
Also I recently stumbled on javascripting.com - fun resource for geeking out on new libs, packages and tools
I've been using husky lately. Make things like pre-commit and pre-push pretty easy. Quite nice to automate those things.
Package here
This looks interesting, but I'm not 100% sure I follow follow what it does based on the readme. Can you explain this like I'm five?
It runs commands of your choice at specific times. For example, if you wanted to run your linter right before your commit and your test suite right before you push, you would add in your package.json something like this:
If your linter fails, your commit fails. If your test suite fails, your push fails ( in this example ). You can use any git hooks you wish.
And it can run other commands, not just npm environment-related ones?
That's a good question. I actually never tried. I suppose whatever you can run inside package.json can be used with husky. Here is a list of hooks supported if you are interested by that
Yeah it does, just did a quick test:
Not going to keep rails test before each commit obviously but we now know it works :D
Very cool! Thank you!
Husky does really facilitate creating git hooks. I prefer linting the code before committing, so for those who want to lint on precommit git hook digitalfortress.tech/tricks/lint-o...
You can run anything.
lint-staged
compliments this package very well. Here's an example, github.com/nickytonline/generator-...Only one gotcha. If you've already installed the husky package at least once, you will need to run
yarn --force
ornpm install --no-cache
. For some reason the post-install script of husky does not run, when the package is pulled from yarn's or npm's cache.pnpm. It's like npm but on steroids.
The author of this handy project is on dev.to as well: @zkochan
Thanks for mentioning!
If you are going to try building a command line application with node here are some packages to consider:
download Downloading any file from its link, useful if are fetching data and going to download images or something
commander A framework for cli apps, making options and such
chalk A library that lets you output colored text on the terminal
inquirer Lets you ask the user questions, useful for creating interactive applications
shelljs Run any terminal command from your javascript file
Also if you are starting new projects, you might want to check my project, Initior. It will make initializing your new projects really fast and convenient <3
pm2 for running your Node applications (or anything else) in production. I used to use forever, but pm2 actually persists across reboots, assuming you set it up to start.
I'm still learning with it, but I like what I've learned so far!
PM2 is super awesome, especially the integration with keymetrics.io