umayer-say-hello-function 0.0.2

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Say hello function
2
+
3
+ A list of not so helpful functions . This is just a demo package
package/dist/index.cjs ADDED
@@ -0,0 +1,40 @@
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 index_exports = {};
22
+ __export(index_exports, {
23
+ syaHello: () => syaHello
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/function.ts
28
+ function syaHello({ firstName, lastName, age }) {
29
+ console.log("Hello"), console.log(`Your first name is ${firstName}`);
30
+ if (lastName) {
31
+ console.log(`Your last name is ${lastName}`);
32
+ }
33
+ if (age) {
34
+ console.log(`Your age is ${age}`);
35
+ }
36
+ }
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ syaHello
40
+ });
@@ -0,0 +1,9 @@
1
+ type SayHelloProps = {
2
+ firstName: string;
3
+ lastName?: string;
4
+ age?: number;
5
+ };
6
+
7
+ declare function syaHello({ firstName, lastName, age }: SayHelloProps): void;
8
+
9
+ export { type SayHelloProps, syaHello };
@@ -0,0 +1,9 @@
1
+ type SayHelloProps = {
2
+ firstName: string;
3
+ lastName?: string;
4
+ age?: number;
5
+ };
6
+
7
+ declare function syaHello({ firstName, lastName, age }: SayHelloProps): void;
8
+
9
+ export { type SayHelloProps, syaHello };
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ // src/function.ts
2
+ function syaHello({ firstName, lastName, age }) {
3
+ console.log("Hello"), console.log(`Your first name is ${firstName}`);
4
+ if (lastName) {
5
+ console.log(`Your last name is ${lastName}`);
6
+ }
7
+ if (age) {
8
+ console.log(`Your age is ${age}`);
9
+ }
10
+ }
11
+ export {
12
+ syaHello
13
+ };
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "umayer-say-hello-function",
3
+ "description": "Just a test package",
4
+ "version": "0.0.2",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsup"
10
+ },
11
+ "homepage": "https://umayerhossain.vercel.app",
12
+ "keywords": [
13
+ "Test"
14
+ ],
15
+ "author": "MD Umayer Hossain",
16
+ "license": "MIT",
17
+ "type": "module",
18
+ "devDependencies": {
19
+ "tsup": "^8.5.1",
20
+ "typescript": "^6.0.2"
21
+ }
22
+ }