1.2.1 • Published 2 years ago

millie v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

millie

A small, zero dependency HTTP library for Node.JS

Have a question? Join the discord!

Discord Server NPM

Features 📜

  • Easy to use
  • Small, around 2kb
  • No dependencies
  • Named after my cat 😁

Basic Usage

let millie = require("millie").millie;

let app = new millie(3000, {
  auth_secret: "api token or password for auth (optional)",
});

app.initialize();

app.request("/api", (req, res) => {
  res.status(200); //not really necessary unless you want to change the status code before responding
  res.message("status message"); //not really necessary if you use the custom respond() function

  res.respond(200, { successful: "your request was successful" }); //body can also be a string
});

Roadmap

  • Custom request properties and functions

  • More custom functions and properties for the response

  • Local app storage

1.2.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.2.1

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago