JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA. Although …
amCharts
A go-to library for data visualization. When you don’t have time to learn new technologies. When you need a simple yet powerful and flexible drop-in data visualization solution. amCharts 4 includes both charts and geographical maps.https://www.amcharts.com/
bignumber.js
bignumber.js is a Javascript library which handles mathematical operations between big numbers (numbers which exceeds the range of current primitive number data types) In Javascript float operation is not absolutely accurate. For example, the result of 0.2 * 0.3 is 0.0599999999…, instead of 0.6. This is acceptable for normal mathematical operations but in crypto space, …
jquery.scrollbar
It is a Javascript library to display customized scrollbar on the browser.Instead of customizing the default scrollbar’s styling, it hides the default scrollbar and generate a new scrollbar using html elements.https://github.com/gromo/jquery.scrollbar
Zip files on Client Side
You can make zip file with contents in javascript easily. var zip = new JSZip();zip.file(“Hello.txt”, “Hello World”); var dir = zip.folder(“images”);dir.file(“smile.gif”, imgData, {base64: true});zip.generateAsync({type:”blob”}) .then(function(content) { saveAs(content, “example.zip”); }); This code will download zip file in browser, tick,,,Please use this lib for frontend side zip file generation. Reference: https://stuk.github.io/jszip/
Closure in javascript
A closure is the combination of a function and the lexical environment within which that function was declared. This environment consists of any local variables that were in-scope at the time the closure was created. Closures are useful because they let you associate some data (the lexical environment) with a function that operates on that …
Vue Validation
When we are going to implement the validation module on the Vue.js web applications, we can use the following vuejs validation package https://monterail.github.io/vuelidate/ This is so cool vue validation library you can use easily.
The npm audit command submits a description of the dependencies configured in your package.
Run a security audit SYNOPSIS§ EXAMPLES§ Scan your project for vulnerabilities and automatically install any compatible updates to vulnerable dependencies: Run audit fix without modifying node_modules, but still updating the pkglock: Skip updating devDependencies: Have audit fix install semver-major updates to toplevel dependencies, not just semver-compatible ones: Do a dry run to get an idea of what audit fix will do, and also output install …
Store functions in localStorage
We can only store string data to localStorage and sometimes we need to store methods and invoke later. In order to do this, Javascript provides functionality to stringify methods. Here is an example function. const func = function sum(a, b) { return a + b; } func.toString() returns a string like function sum(a, b) { …
Creating SVG Sprites using Gulp and Sass
gulp-svg-sprite is a Gulp plugin wrapping around svg-sprite which takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types: Traditional CSS sprites for use as background images, CSS sprites with pre-defined <view> elements, useful for foreground images as well, inline sprites using the <defs> element, inline sprites using the <symbol> element and SVG stacks. https://github.com/jkphl/gulp-svg-sprite