Skip to content

treeder/jsutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsutils

Random scripts I use for many projects.

Getting started

On the server

npm install treeder/jsutils

Then import with:

import {api, apiInit} from 'jsutils/api.js'

On the client

import { api, apiInit } from 'https://cdn.jsdelivr.net/gh/treeder/jsutils@0/api.js'

Usage

Then just use it in place of fetch:

let r = await api(`/v1/posts`)

About

Random scripts I use for many projects.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published