Skip to content

Instantly share code, notes, and snippets.

View shreesharma07's full-sized avatar
🎯
Focusing

Shree Kumar Sharma shreesharma07

🎯
Focusing
View GitHub Profile
@shreesharma07
shreesharma07 / pretty.js
Created April 6, 2023 08:09
Prettifying Code through Command Line Using Prettier
// ! // Importing Modules //
import path from "path";
import prettier from "prettier";
import glob from "glob";
import minimist from "minimist";
import shell from "shelljs";
import fs from "fs";
import chalk from "chalk";
try {
@shreesharma07
shreesharma07 / createRandomPassoword.js
Last active December 16, 2022 08:17
Create Random Passwords using Javascript
// * // Set of Alphanumeric Characters along with Symbols //
const CHARACTER_SET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*";
// @ // Writing Statement to Console //
process.stdout._write("Enter Your Password Length: ", "utf8", (err, res) => {
try {
// ! // Check for Errors //
if (err) {
throw new Error("Error Occured :", {
cause: err,