jwt && remember me functionality

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 …

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/

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 …

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