@ottofinancial/utils

3.0.0 • Public • Published

@ottofinancial/utils

api

const { api } = await import( '@ottofinancial/utils/api' );

api.set_gateway( process.env.API_GATEWAY );

const version = await api.fetch( {
	endpoint: '/billing/version',
	transform: ( body ) => ( body.version )
} );

const external_url_result = await api.fetch( {
	url: 'https://google.com'
} );

/@ottofinancial/utils/

    Package Sidebar

    Install

    npm i @ottofinancial/utils

    Weekly Downloads

    7

    Version

    3.0.0

    License

    ISC

    Unpacked Size

    9.94 kB

    Total Files

    9

    Last publish

    Collaborators

    • renanss
    • luis.m.castaneda
    • abby0880
    • willypat
    • paneyi
    • seamoss
    • andyburke
    • sgarza
    • cssian