Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fuckingeasyframework

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuckingeasyframework

The best simple lightweight framework if you just want fucking shit done without 130865423 lines of boilerplate.

  • 1.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

EasyFramework

A simple extremely light weight framework if you want to get fucking shit done the easy way.
Long gone are the days of stupid fucking documentation and boilerplate.
Just get shit done the quick and fast way, without trouble.

Install

npm install fuckingeasyframework

Documentation

Please go https://github.com/Sopur/EasyFramework/tree/main/example for examples on each way to create servers, which basically include all functions.

HTTP server example

const EF = require("fuckingeasyframework");

const httpPort = 3000;

const $ = new EF.new({
    http: new EF.HTTP_OBJ(httpPort),
});
const app = $.app;
const backend = $.backend;

$.on("http_start", () => console.log(`HTTP server listening on port ${httpPort}.`));

app.use(backend.static(__dirname + "/serve"));
app.get("/", (req, res) => {
    res.sendFile(__dirname + "/serve/main.html");
});

$.start();

HTTPS example

const fs = require("fs");
const EF = require("fuckingeasyframework");

const httpsPort = 8080;
const privateKey = fs.readFileSync(__dirname + "/keys/privatekey.pem", "utf-8");
const publicKey = fs.readFileSync(__dirname + "/keys/publickey.pem", "utf-8");

const $ = new EF.new({
    https: new EF.HTTPS_OBJ(httpsPort, privateKey, publicKey),
});
const app = $.app;
const backend = $.backend;

$.on("https_start", () => console.log(`HTTPS server listening on port ${httpsPort}.`));

app.use(backend.static(__dirname + "/serve"));
app.get("/", (req, res) => {
    res.sendFile(__dirname + "/serve/main.html");
});

$.start();

Both example

const fs = require("fs");
const EF = require("fuckingeasyframework");

const httpPort = 3000;
const httpsPort = 8080;
const privateKey = fs.readFileSync(__dirname + "/keys/privatekey.pem", "utf-8");
const publicKey = fs.readFileSync(__dirname + "/keys/publickey.pem", "utf-8");

const $ = new EF.new({
    http: new EF.HTTP_OBJ(httpPort),
    https: new EF.HTTPS_OBJ(httpsPort, privateKey, publicKey),
});
const app = $.app;
const backend = $.backend;

$.on("http_start", () => console.log(`HTTP server listening on port ${httpPort}.`));
$.on("https_start", () => console.log(`HTTPS server listening on port ${httpsPort}.`));

app.use(backend.static(__dirname + "/serve"));
app.get("/", (req, res) => {
    res.sendFile(__dirname + "/serve/main.html");
});

$.start();

Description

Keywords

FAQs

Package last updated on 26 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc