0.1.0 • Published 3 years ago

crossify-tmp v0.1.0

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

It's ALPHA!

Project may work improperly...

Crossify

Crossify is a lightweight and mainly focused on the cross API fetching framework. Without overheaded functionality you can easily build up your lightweight API which is just processing data from an external APIs.

Crossify gives you direct control to the APIs data with all socket and fetching business logic under the hood!

Quick start

Example

import crossify from "crossify";

const cross = crossify();

const url = "/";
const apiUrl = "https://jsonplaceholder.typicode.com/todos/1";

type Data = Record<string, any>;

cross.get(url, apiUrl, (data: Data) => {
  // Process the data as you want here
  
  const result = Object.defineProperty(data, "title", {
    value: "Hello world!",
  });

  return result;
});

cross.start(3000);
0.1.0

3 years ago