Some usefull javascript tools
FrontExpress
An Express.js-Style router for the front-end
✔️ You already know ExpressJS then you know FrontExpress
✔️ Simple, minimal core extendable through plugins
✔️ Lighweight framework 3.55kb min+gzip
✔️ Build your front-end application by handling routes
✔️ Ideal for Single Page Application
✔️ Manage ajax requests and browser history
Lodash
A modern JavaScript utility library delivering modularity, performance & extras.
Underscore.js
Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.
Underscore provides over 100 functions that support both your favorite workaday functional helpers: map, filter, invoke — as well as more specialized goodies: function binding, javascript templating, creating quick indexes, deep equality testing, and so on.
PPO
Every frontend developer has written his own utils library, and we often write methods that are easily forgotten and highly used. ppo is a super small and useful utils library for JavaScript. It and lodash underscore lazy.js almost no coupling. I sorted out the most frequently used function functions in everyday development. These functions are almost ubiquitous in your development, and they are not found in lodash underscore.
ppo little poor, gzip less than 3k, so a library you can use it anytime, anywhere without worrying about anything.
Moments
Parse, validate, manipulate, and display dates and times in JavaScript.
Format Dates
1 | moment().format('MMMM Do YYYY, h:mm:ss a'); // September 30th 2019, 1:55:35 pm |
Calendar Time
1 | moment().subtract(10, 'days').calendar(); // 09/20/2019 |
…
Marka
Beautiful transformable icons
built for the web.
1 | var m = new Marka('#icon'); |
LocalTunnel
Localtunnel allows you to easily share a web service on your local development machine without messing with DNS and firewall settings.
Localtunnel will assign you a unique publicly accessible url that will proxy all requests to your locally running webserver.
1 | $ npm install -g localtunnel |
Features
- Secure https for all tunnels
- Show your work to anyone
- Use the API to test webhooks
- Test your UI in cloud browsers
ngrok
Public URLs for exposing your local web server.
Public URLs for testing on mobile devices.
Public URLs for building webhook integrations.
Public URLs for sending previews to clients.
Public URLs for testing your chatbot.
Public URLs for demoing from your own machine.
Public URLs for SSH access to your Raspberry Pi.
Spend more time programming. One command for an instant, secure URL to your localhost server through any NAT or firewall.
Prism
Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s used in thousands of websites, including some of those you visit daily.
Dead simple
Include prism.css and prism.js, use proper HTML5 code tags (code.language-xxxx), done!Light as a feather
The core is 2KB minified & gzipped. Languages add 0.3-0.5KB each, themes are around 1KB.Extensible
Define new languages or extend existing ones. Add new features thanks to Prism’s plugin architecture.Intuitive
Language classes are inherited so you can only define the language once for multiple code snippets.Blazing fast
Supports parallelism with Web Workers, if available.Easy styling
All styling is done through CSS, with sensible class names like .comment, .string, .property etc
Passport
Simple, unobtrusive authentication for Nodejs
Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more.
passport.authenticate(‘twitter’);
passport.authenticate(‘facebook’);
passport.authenticate(‘linkedin’);
…
Leaflet
an open-source JavaScript library for mobile-friendly interactive maps
Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 38 KB of JS, it has all the mapping features most developers ever need.
Marked
A markdown parser and compiler. Built for speed.
- low-level compiler for parsing markdown without caching or blocking for long periods of time
- built for speed
- light-weight while implementing all markdown features from the supported flavors & specifications
- works in a browser, on a server, or from a command line interface (CLI)
CLI
1 | $ marked -o hello.html |
Browser
1 |
|