Free form node module to haunt JavaScript land. Limited only by whim.
9 out of 10 property access returns a ghost or something.
let meatSuit = {name: "Norman", job: "Accountant"};
haunt(meatSuit);
meatSuit.name // => "👻"
let mikesArray = ["precious", "data"];
haunt(mikesArray);
console.log(mikesArray); // => ["precious", "data"]
mikesArray[1] // => "data"
console.log(mikesArray); // => ["precious", "💩"]
// 1 tick later;
console.log(mikesArray); // => ["data", "precious"]
function thought(arg) {
console.log(`${arg.name} looks like a turtle...`);
};
think(thought);
thought(meatSuit);
// random execution of thought(arg) every once and awhile;
ThoughtForm.thought(); // ThoughtForm now has method;
let particle = {spin: "up"};
let [A, B] = entangle(particle);
A.spin = "down";
B.spin // => "down";
B.spin = "left";
A.spin // => "left";
A === B // => false;
A.position = [3,4];
B.position // => undefined;
ContainmentUnit.shutDown() // unimplemented. what would happen???
TODO:
- Serve tulpa.js
- Haunt web pages