this.me 2.5.0 → 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.
Files changed (4) hide show
  1. package/main.js +7 -1
  2. package/me.js +18 -0
  3. package/package.json +1 -1
  4. package/test.js +0 -1
package/main.js CHANGED
@@ -7,6 +7,7 @@ const fs = require('fs');
7
7
  const args = process.argv.slice(2);
8
8
  const neurons = require("neurons.me");
9
9
  const cleaker = require("cleaker");
10
+ const netget = require("netget");
10
11
  const Atom = require("this.atom");
11
12
  // Your CLI logic goes here, display welcome message, handle other commands, etc.
12
13
  function displayWelcomeMessage() {
@@ -30,8 +31,12 @@ give me one sec please...
30
31
  };
31
32
 
32
33
  //User Context.
34
+ const Me = require("./me");
35
+ const me = new Me();
33
36
  const os = require('os');
34
- console.log(`Running as user: ${os.userInfo().username}`);
37
+ console.log(`Host_Session@ ${os.userInfo().username}`);
38
+ const cleaked = new cleaker();
39
+ console.log(cleaked.role);
35
40
  //ATOMS ELECTRONS AND PARTICLES IN PROGRESS...
36
41
  //WE WILL RUN OUR NODE PROCCESSES IN ELECTRON WINDOWS AND EACH ATOM WILL HOLD ELECTRONS WHICH HOLDS THE PROCESSES
37
42
  //THUS WE WILL KNOW HOW CHARGED AN ATOM IS BY THE NUMBER OF ELECTRONS IT HAS AND HOW MANY PROCESSES IT IS RUNNING.
@@ -101,6 +106,7 @@ switch(args[0]) {
101
106
 
102
107
  module.exports = {
103
108
  cleaker,
109
+ netget,
104
110
  neurons,
105
111
  Atom,
106
112
  getAllFiles,
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "this.me",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "This.me should This.be",
5
5
  "bin": {
6
6
  ".me": "./main.js"
package/test.js CHANGED
@@ -12,7 +12,6 @@ console.log('Creating a new neuron with neurons.createNeuron()');
12
12
  let neuron = neurons.createNeuron();
13
13
  console.log(neuron);
14
14
 
15
-
16
15
  // Custom options for the neuron
17
16
  let options = {
18
17
  name: 'x', // Custom name for the neuron