10 NPM packages to accelerate your code journey
We are coming back with our series about the best productivity tools for developers! After a selection of our favorite VS Code Extension and the Typescript must have extensions we are turning toward Node JS recommendations. You know the Ponicode philosophy, it’s all about boosting developers' lives and we shortlisted for you 10 npm packages to accelerate your next projects.
Socket is a package enabling you to build real-time communication apps using your data or an API as a source of real-time streams of content. The range of applications goes from collecting posts live to creating your own chat service. Every real-time communication related project is now accessible to you. Be creative and start building your own Twitter or Facebook bot for example.
We found it a bit complicated to begin with but you can ninja kick the learning curve thanks to the many tutorials available out there.
Keywords: Node api content stream chat
4 million weekly downloads
npm i socket.io
Cloudinary simply offers a solution to optimize your software’s entire image management pipeline.
Cloudinary is a cloud service with the full range of image features: upload, resizing, optimizing, cropping. The solution is developer friendly enough that you can get a good grip of the tool very quickly. Don’t wait up to integrate it to your project, the free version will let you see the power of the tool. You can get 1 free Account with 25k transformations or 25 GB of managed storage or 25 GB of net viewing bandwidth.
Keywords: image, media, node, content, optimizing, minifying, pagespeed app optimization
125k weekly downloads
npm install cloudinary
Keywords: clean code, architecture, collaboration, legacy code, dependencies, libraries
1,600,000 weekly downloads
npm install -g browserify
Another great package to focus on coding and stop handling the tedious side of your project. Grunt enables you to automate a wide range of tasks including code linting or compiling related tasks. They have a range of plugins to explore and you can also create your own plugin if there is a task they haven’t covered yet.
If you want a hint, here are the top 5 most popular task they support at the moment
- clean files and folders
- run predefined tasks whenever watch file patterns are added, changed or deleted
- copy files and folders
- concatenate files
Keywords: automation, task automation, code optimization, developer augmentation
700,000 weekly downloads
npm install -g grunt-cli
Keywords: lint, bug, debugging, syntax error
500,000+ weekly downloads
npm i jshint
Husky is a tool to simplify git hooks implementation. Thanks to Husky you can improve the coding standards across your team by requiring systematic lint and test before allowing to push a PR.
You can commit to your team that bad formatted code never gets committed ever again (ah ah). But beyond this you can do a lot more and bind more scripts and command to different hooks.
Keywords: git hooks, commit, PR, test management, version control
5,500 weekly downloads
npm i husky
5,500,000 weekly downloads
npm i flat
0 dependency module that loads environment variables from a .env file into process.env.
And their latest releases Dotenv.sync to sync your .env files between machines, environments, and team members. Currently under soft release.
Keywords: env files, zero dependancy
20,000,000 weekly downloads
npm i dotenv
I’ve spent too much time looking for the right colors or automating color generation only to end up with grim scales of grey. Randomcolor is a script generating attractive random colors. And in order to respect your branding guidelines you can pass an options object to influence the type of color it produces.
Keywords: front end, color generation, script, design
83,000 weekly downloads
npm i randomcolor
Keywords: JS library, utility library, Lodash
40,500,000 weekly downloads
npm i iodash
That's a wrap on our list of the best npm packages to boost your development experience. Hopefully you found a few new tools to enhance your coding journey 😉
If you want to learn more about programming and code quality, we have a wealth of resources right here, and if you haven't tried Ponicode yet, then click the banner below 🦄