bikerider 1.0.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/__init__.py ADDED
File without changes
package/index.js ADDED
@@ -0,0 +1,29 @@
1
+ // Load environment variables
2
+ require("dotenv").config();
3
+
4
+ // Import axios (CommonJS works fine)
5
+ const axios = require("axios");
6
+
7
+ // uuid function holder
8
+ let uuidv4;
9
+
10
+ // Load uuid using dynamic import (ESM support)
11
+ import("uuid")
12
+ .then((mod) => {
13
+ uuidv4 = mod.v4; // map ESM v4 export to our variable
14
+ })
15
+ .catch((err) => {
16
+ console.error("UUID failed to load ❌", err);
17
+ });
18
+
19
+ // Exported function (handles async load safely)
20
+ function startRide(user) {
21
+ return {
22
+ rideId: uuidv4 ? uuidv4() : "uuid-not-ready-yet", // fallback until loaded
23
+ rider: user,
24
+ status: "Ride started 🏍️🔥",
25
+ };
26
+ }
27
+
28
+ // Export for other laptops/projects
29
+ module.exports = { startRide };
package/main.py ADDED
@@ -0,0 +1,2 @@
1
+ def greet():
2
+ return "Hello from Bikerider package!"
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "bikerider",
3
+ "version": "1.0.0",
4
+ "description": "My first npm package by Abhi bro",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js",
8
+ "test": "echo \"No test specified yet\""
9
+ },
10
+ "keywords": [],
11
+ "author": "Sattaru Venkata Abhilash",
12
+ "license": "ISC",
13
+ "dependencies": {
14
+ "axios": "^1.13.2",
15
+ "dotenv": "^17.2.3",
16
+ "uuid": "^13.0.0"
17
+ }
18
+ }
package/test.js ADDED
@@ -0,0 +1,3 @@
1
+ const { startRide } = require("./index");
2
+
3
+ console.log(startRide("Abhi bro 😎"));