esnet

3.9.8 • Public • Published


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.

Package Sidebar

Install

npm i esnet

Weekly Downloads

0

Version

3.9.8

License

SEE LICENSE IN LICENSE

Last publish

Collaborators

  • collisiondevelopment