0.0.2 • Published 2 years ago
pretty-headers v0.0.2
Headers Formatter
Write headers names with no pain. :sparkles:
Usage
import { format } from 'pretty-headers'
const response = await fetch('https://example.com', {
headers: format({
xDeviceId: 'abc', // equivalent to 'X-Device-Id'
}),
})
// do your stuff
Installation
npm install pretty-headers
0.0.2
2 years ago