tulpa
v1.2.1
Published
Free form node module to haunt JavaScript land. Limited only by whim.
Readme
Haunt your JavaScript
Free form node module to haunt JavaScript land. Limited only by whim.
haunt
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"]
think & ThoughtForm
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;entangle
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???Clone and contribute!
TODO:
- Serve tulpa.js
- Haunt web pages
