auth-launcher 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ - Initial public release.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aftab Ahmad Khan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # auth-launcher
2
+
3
+ **Topics:** auth · jwt · rbac · express · mern-packages · merndev · nodejs · npm-pm · typescript
4
+
5
+ Generate **production-ready authentication** scaffolding in one command.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install auth-launcher
11
+ ```
12
+
13
+ ## Example
14
+
15
+ ```bash
16
+ npx auth-launcher install
17
+ ```
18
+
19
+ ## API
20
+
21
+ ```typescript
22
+ import { authLauncher } from "auth-launcher";
23
+
24
+ const kit = authLauncher.install();
25
+ ```
26
+
27
+ ## License
28
+
29
+ MIT
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require("./dist/cli.cjs");
@@ -0,0 +1,13 @@
1
+ // src/index.ts
2
+ var authLauncher = {
3
+ install() {
4
+ return {
5
+ features: ["JWT", "Refresh Tokens", "RBAC", "Email Verify", "Password Reset"]
6
+ };
7
+ }
8
+ };
9
+
10
+ export {
11
+ authLauncher
12
+ };
13
+ //# sourceMappingURL=chunk-SY3BHVPI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface AuthLauncherKit {\n features: readonly string[];\n}\n\nexport const authLauncher = {\n install(): AuthLauncherKit {\n return {\n features: [\"JWT\", \"Refresh Tokens\", \"RBAC\", \"Email Verify\", \"Password Reset\"],\n };\n },\n};\n"],"mappings":";AAIO,IAAM,eAAe;AAAA,EAC1B,UAA2B;AACzB,WAAO;AAAA,MACL,UAAU,CAAC,OAAO,kBAAkB,QAAQ,gBAAgB,gBAAgB;AAAA,IAC9E;AAAA,EACF;AACF;","names":[]}
package/dist/cli.cjs ADDED
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+
25
+ // src/cli.ts
26
+ var import_picocolors = __toESM(require("picocolors"), 1);
27
+
28
+ // src/index.ts
29
+ var authLauncher = {
30
+ install() {
31
+ return {
32
+ features: ["JWT", "Refresh Tokens", "RBAC", "Email Verify", "Password Reset"]
33
+ };
34
+ }
35
+ };
36
+
37
+ // src/cli.ts
38
+ async function main() {
39
+ const cmd = process.argv[2];
40
+ if (cmd === "install") {
41
+ const k = authLauncher.install();
42
+ console.log(import_picocolors.default.green("auth-launcher"), k.features.join(", "));
43
+ return;
44
+ }
45
+ console.log(import_picocolors.default.cyan("auth-launcher"), "install");
46
+ process.exit(cmd ? 1 : 0);
47
+ }
48
+ void main().catch((e) => {
49
+ console.error(e);
50
+ process.exit(1);
51
+ });
52
+ //# sourceMappingURL=cli.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cli.ts","../src/index.ts"],"sourcesContent":["import pc from \"picocolors\";\nimport { authLauncher } from \"./index.js\";\n\nasync function main() {\n const cmd = process.argv[2];\n if (cmd === \"install\") {\n const k = authLauncher.install();\n console.log(pc.green(\"auth-launcher\"), k.features.join(\", \"));\n return;\n }\n console.log(pc.cyan(\"auth-launcher\"), \"install\");\n process.exit(cmd ? 1 : 0);\n}\n\nvoid main().catch((e) => {\n console.error(e);\n process.exit(1);\n});\n","export interface AuthLauncherKit {\n features: readonly string[];\n}\n\nexport const authLauncher = {\n install(): AuthLauncherKit {\n return {\n features: [\"JWT\", \"Refresh Tokens\", \"RBAC\", \"Email Verify\", \"Password Reset\"],\n };\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAAe;;;ACIR,IAAM,eAAe;AAAA,EAC1B,UAA2B;AACzB,WAAO;AAAA,MACL,UAAU,CAAC,OAAO,kBAAkB,QAAQ,gBAAgB,gBAAgB;AAAA,IAC9E;AAAA,EACF;AACF;;;ADPA,eAAe,OAAO;AACpB,QAAM,MAAM,QAAQ,KAAK,CAAC;AAC1B,MAAI,QAAQ,WAAW;AACrB,UAAM,IAAI,aAAa,QAAQ;AAC/B,YAAQ,IAAI,kBAAAA,QAAG,MAAM,eAAe,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;AAC5D;AAAA,EACF;AACA,UAAQ,IAAI,kBAAAA,QAAG,KAAK,eAAe,GAAG,SAAS;AAC/C,UAAQ,KAAK,MAAM,IAAI,CAAC;AAC1B;AAEA,KAAK,KAAK,EAAE,MAAM,CAAC,MAAM;AACvB,UAAQ,MAAM,CAAC;AACf,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":["pc"]}
package/dist/cli.js ADDED
@@ -0,0 +1,21 @@
1
+ import {
2
+ authLauncher
3
+ } from "./chunk-SY3BHVPI.js";
4
+
5
+ // src/cli.ts
6
+ import pc from "picocolors";
7
+ async function main() {
8
+ const cmd = process.argv[2];
9
+ if (cmd === "install") {
10
+ const k = authLauncher.install();
11
+ console.log(pc.green("auth-launcher"), k.features.join(", "));
12
+ return;
13
+ }
14
+ console.log(pc.cyan("auth-launcher"), "install");
15
+ process.exit(cmd ? 1 : 0);
16
+ }
17
+ void main().catch((e) => {
18
+ console.error(e);
19
+ process.exit(1);
20
+ });
21
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["import pc from \"picocolors\";\nimport { authLauncher } from \"./index.js\";\n\nasync function main() {\n const cmd = process.argv[2];\n if (cmd === \"install\") {\n const k = authLauncher.install();\n console.log(pc.green(\"auth-launcher\"), k.features.join(\", \"));\n return;\n }\n console.log(pc.cyan(\"auth-launcher\"), \"install\");\n process.exit(cmd ? 1 : 0);\n}\n\nvoid main().catch((e) => {\n console.error(e);\n process.exit(1);\n});\n"],"mappings":";;;;;AAAA,OAAO,QAAQ;AAGf,eAAe,OAAO;AACpB,QAAM,MAAM,QAAQ,KAAK,CAAC;AAC1B,MAAI,QAAQ,WAAW;AACrB,UAAM,IAAI,aAAa,QAAQ;AAC/B,YAAQ,IAAI,GAAG,MAAM,eAAe,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;AAC5D;AAAA,EACF;AACA,UAAQ,IAAI,GAAG,KAAK,eAAe,GAAG,SAAS;AAC/C,UAAQ,KAAK,MAAM,IAAI,CAAC;AAC1B;AAEA,KAAK,KAAK,EAAE,MAAM,CAAC,MAAM;AACvB,UAAQ,MAAM,CAAC;AACf,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
package/dist/index.cjs ADDED
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ authLauncher: () => authLauncher
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+ var authLauncher = {
27
+ install() {
28
+ return {
29
+ features: ["JWT", "Refresh Tokens", "RBAC", "Email Verify", "Password Reset"]
30
+ };
31
+ }
32
+ };
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ authLauncher
36
+ });
37
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface AuthLauncherKit {\n features: readonly string[];\n}\n\nexport const authLauncher = {\n install(): AuthLauncherKit {\n return {\n features: [\"JWT\", \"Refresh Tokens\", \"RBAC\", \"Email Verify\", \"Password Reset\"],\n };\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,IAAM,eAAe;AAAA,EAC1B,UAA2B;AACzB,WAAO;AAAA,MACL,UAAU,CAAC,OAAO,kBAAkB,QAAQ,gBAAgB,gBAAgB;AAAA,IAC9E;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,8 @@
1
+ interface AuthLauncherKit {
2
+ features: readonly string[];
3
+ }
4
+ declare const authLauncher: {
5
+ install(): AuthLauncherKit;
6
+ };
7
+
8
+ export { type AuthLauncherKit, authLauncher };
@@ -0,0 +1,8 @@
1
+ interface AuthLauncherKit {
2
+ features: readonly string[];
3
+ }
4
+ declare const authLauncher: {
5
+ install(): AuthLauncherKit;
6
+ };
7
+
8
+ export { type AuthLauncherKit, authLauncher };
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import {
2
+ authLauncher
3
+ } from "./chunk-SY3BHVPI.js";
4
+ export {
5
+ authLauncher
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "auth-launcher",
3
+ "version": "0.1.0",
4
+ "description": "auth-launcher — Scaffold JWT, refresh tokens, RBAC, email verify, and password reset.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "bin": {
11
+ "auth-launcher": "auth-launcher.cjs"
12
+ },
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.cjs"
18
+ }
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "auth-launcher.cjs",
23
+ "README.md",
24
+ "LICENSE",
25
+ "CHANGELOG.md"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsup",
29
+ "test": "vitest run",
30
+ "typecheck": "tsc --noEmit",
31
+ "prepublishOnly": "npm run build"
32
+ },
33
+ "keywords": [
34
+ "auth",
35
+ "jwt",
36
+ "rbac",
37
+ "express",
38
+ "mern-packages",
39
+ "merndev",
40
+ "nodejs",
41
+ "npm-pm",
42
+ "typescript"
43
+ ],
44
+ "dependencies": {
45
+ "picocolors": "^1.0.0"
46
+ },
47
+ "devDependencies": {
48
+ "@types/node": "^20.11.0",
49
+ "tsup": "^8.0.0",
50
+ "typescript": "^5.4.0",
51
+ "vitest": "^1.4.0"
52
+ },
53
+ "engines": {
54
+ "node": ">=18"
55
+ },
56
+ "author": "Aftab Ahmad Khan (https://github.com/aftab-ahmad-khan-dev)",
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+https://github.com/NPM-Packages-Modules/mern.git",
60
+ "directory": "auth-launcher"
61
+ },
62
+ "bugs": {
63
+ "url": "https://github.com/NPM-Packages-Modules/mern/issues"
64
+ },
65
+ "homepage": "https://github.com/NPM-Packages-Modules/mern/tree/main/auth-launcher",
66
+ "publishConfig": {
67
+ "access": "public"
68
+ }
69
+ }