0.1.0 • Published 2 years ago

fly-node-api v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Install

npm i fly-node-api

Usage

import 'dotenv/config'
import { createClient } from 'fly-node-api'

const client = createClient({
    headers: {
        Authorization: `Bearer ${process.env.TOKEN}`,
    },
})

async function main() {
    const res = await client.query({
        app: [
            { name: 'my-app' },
            {
                secrets: { name: true },
                status: true,
            },
        ],
    })
    console.log(res.app)
}

main()
0.1.0

2 years ago