Socket
Book a DemoInstallSign in
Socket

@flinj/client

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flinj/client

| :construction: This project is still in development. You should use it with caution. | | ------------------------------------------------------------------------------------ |

1.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@flinj/client

:construction: This project is still in development. You should use it with caution.

The fasest way to build REST API

Flinching

Prerequisite

Install @flinj/server on your server

Installation

npm i @flinj/client

navigate to your client directory and run

npx flinj ../relative/path/to/backend/controllers

Remember Everytime you create new controller on your server you need to run the command above

Usage

import { createClient } from '@flinj/client';

export const client = createClient({
	baseURL: '/api',
	headers: {
		authorization: `Bearer ${process.env.API_KEY}`,
	},
});

const user = await client.users.POST({
	name: 'Israel',
	email: 'test@gmail.com',
	password: '123456',
});

TODO

  • support multi request params
  • adjust to work with the new changes of @flinj/server

Keywords

express

FAQs

Package last updated on 15 Oct 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.