@fastify/formbody
Advanced tools
Comparing version 6.0.0 to 6.0.1
{ | ||
"name": "@fastify/formbody", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "A module for Fastify to parse x-www-form-urlencoded bodies", | ||
@@ -5,0 +5,0 @@ "main": "formbody.js", |
@@ -1,6 +0,6 @@ | ||
# fastify-formbody | ||
# @fastify/formbody | ||
![CI](https://github.com/fastify/fastify-formbody/workflows/CI/badge.svg) | ||
[![NPM version](https://img.shields.io/npm/v/fastify-formbody.svg?style=flat)](https://www.npmjs.com/package/fastify-formbody) | ||
[![NPM downloads](https://img.shields.io/npm/dm/fastify-formbody.svg?style=flat)](https://www.npmjs.com/package/fastify-formbody) | ||
[![NPM version](https://img.shields.io/npm/v/@fastify/formbody.svg?style=flat)](https://www.npmjs.com/package/@fastify/formbody) | ||
[![NPM downloads](https://img.shields.io/npm/dm/fastify-formbody.svg?style=flat)](https://www.npmjs.com/package/@fastify/formbody) | ||
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
@@ -24,3 +24,3 @@ [![codecov](https://codecov.io/gh/fastify/fastify-formbody/branch/master/graph/badge.svg)](https://codecov.io/gh/fastify/fastify-formbody) | ||
fastify.register(require('fastify-formbody')) | ||
fastify.register(require('@fastify/formbody')) | ||
@@ -63,3 +63,3 @@ fastify.post('/', (req, reply) => { | ||
(`1048576` by default). | ||
+ `parser`: The default parser used is the querystring.parse built-in. You can change this default by passing a parser function e.g. `fastify.register(require('fastify-formbody'), { parser: str => myParser(str) })` | ||
+ `parser`: The default parser used is the querystring.parse built-in. You can change this default by passing a parser function e.g. `fastify.register(require('@fastify/formbody'), { parser: str => myParser(str) })` | ||
@@ -83,3 +83,3 @@ ## Upgrading from 4.x | ||
const qs = require('qs') | ||
fastify.register(require('fastify-formbody'), { parser: str => qs.parse(str) }) | ||
fastify.register(require('@fastify/formbody'), { parser: str => qs.parse(str) }) | ||
``` | ||
@@ -86,0 +86,0 @@ |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15481
1