Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snek-node

Typescript node-fetch wrapper with an snekfetch like interface

Example Usage:

import { Request: { get, post } } from 'snek-node';,

get('https://google.com')
	.then(res => console.log(res.body))
	.catch(console.error)

post('https://google.com')
	.set('Authorization', 'Token')
	.send({ data: 'important data'})
	.query('site', '1')
	.then(res => console.log(res.body))
	.catch(console.error)
const { Request: { get, post }} = require('snek-node');

get('https://google.com')
	.then(res => console.log(res.body))
	.catch(console.error)

post('https://google.com')
	.set('Authorization', 'Token')
	.send({ data: 'important data'})
	.query('site', '1')
	.then(res => console.log(res.body))
	.catch(console.error)

About

A node-fetch wrapper to have a Snekfetch like API

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages