this.me 2.5.1 → 2.5.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/main.js +5 -1
- package/me.js +18 -0
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -31,8 +31,12 @@ give me one sec please...
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
//User Context.
|
|
34
|
+
const Me = require("./me");
|
|
35
|
+
const me = new Me();
|
|
34
36
|
const os = require('os');
|
|
35
|
-
console.log(`
|
|
37
|
+
console.log(`Host_Session@ ${os.userInfo().username}`);
|
|
38
|
+
const cleaked = new cleaker();
|
|
39
|
+
console.log(cleaked.role);
|
|
36
40
|
//ATOMS ELECTRONS AND PARTICLES IN PROGRESS...
|
|
37
41
|
//WE WILL RUN OUR NODE PROCCESSES IN ELECTRON WINDOWS AND EACH ATOM WILL HOLD ELECTRONS WHICH HOLDS THE PROCESSES
|
|
38
42
|
//THUS WE WILL KNOW HOW CHARGED AN ATOM IS BY THE NUMBER OF ELECTRONS IT HAS AND HOW MANY PROCESSES IT IS RUNNING.
|
package/me.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// me.js
|
|
2
|
+
class Me {
|
|
3
|
+
constructor(name, email, birthDate, location = {}, preferences = {}) {
|
|
4
|
+
this.name = name; // Full name
|
|
5
|
+
this.email = email; // Email address
|
|
6
|
+
this.birthDate = birthDate; // Birthdate
|
|
7
|
+
this.location = location; // Location object { city: '...', country: '...', ...}
|
|
8
|
+
this.preferences = preferences; // User's preferences or settings, it could be an object { theme: 'dark', notifications: true, ...}
|
|
9
|
+
// Add other attributes pertinent to the profile as needed.
|
|
10
|
+
}
|
|
11
|
+
// Method to update location
|
|
12
|
+
updateLocation(newLocation) {
|
|
13
|
+
this.location = newLocation;
|
|
14
|
+
}
|
|
15
|
+
// Add other methods to get, set, or update profile details as needed.
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
module.exports = Me;
|