1.2.1 • Published 6 years ago

tulpa v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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
1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago