There is no strict rule when we write commit messages.Using certain convention for commit messages will give several advantages. Angular team is using precise message format, which is clean and easy to look, contains only mandatary information. Goals allow generating CHANGELOG.md by script allow ignoring commits by git bisect (not important commits like formatting) provide …
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 …
MetaMask now supports Ledger Hardware Wallets
Last month, MetaMask released 4.9.0, which included support for Trezor hardware wallets. As we discussed in our blog post, your funds are only as safe as your keys — hardware wallets are a great way to store keys securely offline. We want Ethereum users to be as safe as possible and we don’t want to leave anyone …
Hardware wallet integration emulator
Trezor is a hardware wallet providing advanced security for handling Bitcoin and other cryptocurrencies private keys. Unlike traditional cold storage methods (offline storage or paper wallets), Trezor makes secure payments without exposing your private keys to a potentially compromised computer. See Security philosophy for more info. Trezor is a small single-purpose computer. It is designed to protect your private keys from possible …
Implement download functionality in website by iframe
We can implement download functionality using iframe. If we place iframe in websites and set the url of download source in src attribute of iframe, the source is automatically downloaded to our local PC.
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.
A Complete Guide to Grid
CSS Grid Layout is the most powerful layout system available in CSS. It is a 2-dimensional system, meaning it can handle both columns and rows, unlike flexbox which is largely a 1-dimensional system. You work with Grid Layout by applying CSS rules both to a parent element (which becomes the Grid Container) and to that …
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) { …