1.0.0-rc2 • Published 3 years ago

postgrest-js v1.0.0-rc2

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

PostgREST.js

Heavy WIP, consider yourself warned.

What is PostgREST.js?

PostgREST.js is a client library for consuming PostgREST APIs. It provides a set of functions and TypeScript interfaces to make your life easier when working with PostgREST in web browsers on Node.JS.

PostgREST.js is not an ORM, nor does it provide any specific entity mapping pattern. You have to provide types for your entities yourself.

Installation

npm install --save postgrest-js

Usage

TypeScript / ES6

import {createConfig, get} from 'postgrest-js'

const config = createConfig({
    endpoint: 'https://api.example.com',
    authorizationToken: 'example'
})

async function foo () {
    const response = await get('customer', {}, config)
    console.log(response.items)
}
foo()
1.0.0-rc2

3 years ago

1.0.0-rc1

4 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago