Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Cretezy/auth-param-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth-param-parser

Parses the auth-param syntax from RFC7235.

Install

yarn add auth-param-parser
# or
npm install auth-param-parser
import { stringifyAuthParams, parseAuthParams } from "auth-param-parser";
# or
const { stringifyAuthParams, parseAuthParams } = require("auth-param-parser");

Usage

Parse

parseAuthParams(`foo="bar",foofoo="barbar"`);
{
	foo: "bar",
	foofoo: "barbar"
}

Stringify

stringifyAuthParams({
	foo: "bar",
	foofoo: "barbar"
});
foo="bar",foofoo="barbar"

About

Parse auth-param syntax from RFC7235

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published