Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anujsingh

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anujsingh - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

build/types/utils/constants.d.ts

3

build/commands/anujsingh.js

@@ -47,2 +47,3 @@ "use strict";

(0, helpers_1.showWelcomeText)();
(0, helpers_1.askQuestions)();
print.info('');

@@ -54,2 +55,2 @@ return [2 /*return*/];

module.exports = command;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW51anNpbmdoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbW1hbmRzL2FudWpzaW5naC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLDRDQUFrRDtBQUVsRCxJQUFNLE9BQU8sR0FBbUI7SUFDOUIsSUFBSSxFQUFFLFdBQVc7SUFDakIsR0FBRyxFQUFFLFVBQU8sT0FBTzs7O1lBQ1QsS0FBSyxHQUFLLE9BQU8sTUFBWixDQUFZO1lBQ3pCLElBQUEseUJBQWUsR0FBRSxDQUFBO1lBQ2pCLEtBQUssQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUE7OztTQUNmO0NBQ0YsQ0FBQTtBQUVELE1BQU0sQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFBIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW51anNpbmdoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbW1hbmRzL2FudWpzaW5naC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLDRDQUFnRTtBQUVoRSxJQUFNLE9BQU8sR0FBbUI7SUFDOUIsSUFBSSxFQUFFLFdBQVc7SUFDakIsR0FBRyxFQUFFLFVBQU8sT0FBTzs7O1lBQ1QsS0FBSyxHQUFLLE9BQU8sTUFBWixDQUFZO1lBQ3pCLElBQUEseUJBQWUsR0FBRSxDQUFBO1lBQ2pCLElBQUEsc0JBQVksR0FBRSxDQUFBO1lBQ2QsS0FBSyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQTs7O1NBQ2Y7Q0FDRixDQUFBO0FBRUQsTUFBTSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUEifQ==
export declare const showWelcomeText: () => void;
export declare const askQuestions: () => void;
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.showWelcomeText = void 0;
exports.askQuestions = exports.showWelcomeText = void 0;
var opener = require("opener");
var figlet = require("figlet");
var gluegun_1 = require("gluegun");
var kleur_1 = require("kleur");
var constants_1 = require("./constants");
var types_1 = require("./types");
var download_1 = require("./download");
var showWelcomeText = function () {

@@ -24,2 +65,66 @@ var welcomeText = "Welcome to Anuj's Profile";

exports.showWelcomeText = showWelcomeText;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUFnQztBQUNoQywrQkFBNkI7QUFFdEIsSUFBTSxlQUFlLEdBQWU7SUFDekMsSUFBTSxXQUFXLEdBQUcsMkJBQTJCLENBQUE7SUFDL0MsSUFBTSxVQUFVLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQyxXQUFXLEVBQUU7UUFDOUMsSUFBSSxFQUFFLE9BQU87UUFDYixnQkFBZ0IsRUFBRSxTQUFTO1FBQzNCLGNBQWMsRUFBRSxTQUFTO0tBQzFCLENBQUMsQ0FBQTtJQUVGLCtCQUErQjtJQUMvQixJQUFNLFVBQVUsR0FBRyxHQUFHLENBQUE7SUFDdEIsSUFBTSxZQUFZLEdBQUcsVUFBVSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUEsQ0FBQyw4Q0FBOEM7SUFFcEcsb0NBQW9DO0lBQ3BDLElBQU0sTUFBTSxHQUFHLFVBQVUsQ0FBQyxNQUFNLENBQUMsWUFBWSxDQUFDLENBQUE7SUFFOUMscUNBQXFDO0lBQ3JDLElBQU0sa0JBQWtCLEdBQUcsVUFBRyxNQUFNLGVBQUssVUFBVSxlQUFLLE1BQU0sQ0FBRSxDQUFBO0lBQ2hFLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBQSxhQUFLLEVBQUMsVUFBRyxrQkFBa0IsQ0FBRSxDQUFDLENBQUMsQ0FBQTtJQUMzQyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUE7QUFDZixDQUFDLENBQUE7QUFuQlksUUFBQSxlQUFlLG1CQW1CM0IifQ==
var askQuestions = function () { return __awaiter(void 0, void 0, void 0, function () {
var questions;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, gluegun_1.prompt.ask({
type: 'select',
name: 'socialMediaLinks',
message: 'Select one of the following options to proceed',
choices: constants_1.CMD_QUESTIONS,
})];
case 1:
questions = _a.sent();
handleSelectedOption(questions['socialMediaLinks']);
return [2 /*return*/];
}
});
}); };
exports.askQuestions = askQuestions;
var handleSelectedOption = function (answer) {
switch (answer) {
case types_1.PROFILE_OPTIONS.PORTFOLIO:
handleOpenPortfolio();
break;
case types_1.PROFILE_OPTIONS.RESUME:
handleOpenResume();
break;
case types_1.PROFILE_OPTIONS.SOCIAL:
handleSocialQuestions();
break;
default:
}
};
var handleOpenPortfolio = function () {
opener(constants_1.PORTFOLIO_URL);
};
var handleOpenResume = function () { return __awaiter(void 0, void 0, void 0, function () {
var question, answer;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, gluegun_1.prompt.ask({
type: 'select',
name: 'resumePreview',
message: 'Select the way you want to see resume',
choices: constants_1.RESUME_QUESTIONS,
})];
case 1:
question = _a.sent();
answer = question['resumePreview'];
switch (answer) {
case types_1.RESUME_OPTIONS.BROWSER:
opener(constants_1.RESUME_URL);
break;
case types_1.RESUME_OPTIONS.DOWNLOAD:
(0, download_1.downloadResume)();
break;
default:
}
return [2 /*return*/];
}
});
}); };
var handleSocialQuestions = function () {
//
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLCtCQUFnQztBQUNoQywrQkFBZ0M7QUFDaEMsbUNBQWdDO0FBQ2hDLCtCQUE2QjtBQUM3Qix5Q0FLb0I7QUFDcEIsaUNBQXlEO0FBQ3pELHVDQUEyQztBQUVwQyxJQUFNLGVBQWUsR0FBZTtJQUN6QyxJQUFNLFdBQVcsR0FBRywyQkFBMkIsQ0FBQTtJQUMvQyxJQUFNLFVBQVUsR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDLFdBQVcsRUFBRTtRQUM5QyxJQUFJLEVBQUUsT0FBTztRQUNiLGdCQUFnQixFQUFFLFNBQVM7UUFDM0IsY0FBYyxFQUFFLFNBQVM7S0FDMUIsQ0FBQyxDQUFBO0lBRUYsK0JBQStCO0lBQy9CLElBQU0sVUFBVSxHQUFHLEdBQUcsQ0FBQTtJQUN0QixJQUFNLFlBQVksR0FBRyxVQUFVLENBQUMsS0FBSy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ENBQUE7WUFDbEIsTUFBSztRQUNQLEtBQUssdUJBQWUsQ0FBQyxNQUFNO1lBQ3pCLHFCQUFxQixFQUFFLENBQUE7WUFDdkIsTUFBSztRQUNQLFFBQVE7S0FDVDtBQUNILENBQUMsQ0FBQTtBQUVELElBQU0sbUJBQW1CLEdBQUc7SUFDMUIsTUFBTSxDQUFDLHlCQUFhLENBQUMsQ0FBQTtBQUN2QixDQUFDLENBQUE7QUFFRCxJQUFNLGdCQUFnQixHQUFHOzs7O29CQUNOLHFCQUFNLGdCQUFNLENBQUMsR0FBRyxDQUFDO29CQUNoQyxJQUFJLEVBQUUsUUFBUTtvQkFDZCxJQUFJLEVBQUUsZUFBZTtvQkFDckIsT0FBTyxFQUFFLHVDQUF1QztvQkFDaEQsT0FBTyxFQUFFLDRCQUFnQjtpQkFDMUIsQ0FBQyxFQUFBOztnQkFMSSxRQUFRLEdBQUcsU0FLZjtnQkFFSSxNQUFNLEdBQUcsUUFBUSxDQUFDLGVBQWUsQ0FBbUIsQ0FBQTtnQkFFMUQsUUFBUSxNQUFNLEVBQUU7b0JBQ2QsS0FBSyxzQkFBYyxDQUFDLE9BQU87d0JBQ3pCLE1BQU0sQ0FBQyxzQkFBVSxDQUFDLENBQUE7d0JBQ2xCLE1BQUs7b0JBQ1AsS0FBSyxzQkFBYyxDQUFDLFFBQVE7d0JBQzFCLElBQUEseUJBQWMsR0FBRSxDQUFBO3dCQUNoQixNQUFLO29CQUNQLFFBQVE7aUJBQ1Q7Ozs7S0FDRixDQUFBO0FBRUQsSUFBTSxxQkFBcUIsR0FBRztJQUM1QixFQUFFO0FBQ0osQ0FBQyxDQUFBIn0=
{
"name": "anujsingh",
"version": "0.0.3",
"version": "0.0.4",
"description": "Anuj's Portfolio",

@@ -15,2 +15,3 @@ "homepage": "https://anujraghuvanshi.vercel.app/",

"build": "yarn clean-build && yarn compile && yarn copy-templates",
"publish": "npm publish --access public",
"prepublishOnly": "yarn build",

@@ -34,3 +35,6 @@ "format": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix && prettier \"**/*.{js,jsx,ts,tsx,json}\" --write",

"gluegun": "latest",
"kleur": "^4.1.5"
"kleur": "^4.1.5",
"opener": "^1.5.2",
"os": "^0.1.2",
"path": "^0.12.7"
},

@@ -37,0 +41,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc