serverifier
v1.1.1
Published
A library to use server functions inside a client application.
Downloads
6
Readme
Serverifier
A library to use server functions inside a client application.
Installation
To install the library, use npm:
npm install serverifier@latest
const Serverifier = require("serverifier");
// initialize the server
Serverifier.init();
// Set a route with sample data
Serverifier.setRoute("/api/sample", { message: "Hello, world!" });
Serverifier.init(4000, "/app");
Serverifier.setRoute("/api/custom", { custom: "data" });