3.9.8 • Published 7 years ago

esnet v3.9.8

Weekly downloads
7
License
SEE LICENSE IN LI...
Repository
github
Last release
7 years ago

esnet is an open-source social network base using pure JavaScript and user-specified functions.

Why are you doing this to yourself

I have depression and writing this made it worse ¯\_(ツ)_/¯. Anyways this might work just wait n see I guess.

How will this work?

It won't.

It will work somewhat like this when it's released:

import { v3 as esnet } from 'esnet';

const Fakebook: esnet = new esnet('Fakebook', 'v3');
Fakebook.event('login', (usernameOrEmail, attemptedPassword) => {
  return !!myGetFn('https://example.com/fakebook/cdn/v3/checkLogin');
});
Fakebook.event('htmlUpdate', (html) => {
  document.body.innerHTML = html;
});

const FakebookMain: esnet = new esnet('Fakebook', 'main', true);
FakebookMain.addVersion(Fakebook);

// FakebookMain now listens for ?v=<version> in the URL and finds <version> and executes that network.

That's completely idiotic, you just listen for events and you can't implement custom HTML.

Fakebook.useJSON(); // `htmlUpdate` won't be fired; `jsonUpdate` will and will contain details about the page.