Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bigcommerce/form-poster

Package Overview
Dependencies
Maintainers
15
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigcommerce/form-poster

A JavaScript library for posting HTML form data

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.8K
increased by38.37%
Maintainers
15
Weekly downloads
 
Created
Source

form-poster

Build Status

This is a JavaScript library for making a POST request as if you are submitting a HTML form. The request will have application/x-www-form-urlencoded content-type header. This is useful in situations where you want the same behaviour as submitting a HTML form without actually having the form in DOM.

Usage

You can install this package using npm or yarn. Below is an example of how to use it.

import { createFormPoster } from 'form-poster';

const formPoster = createFormPoster();
const url = '/url/123';
const data = { field_1: 'foo', field_2: 'bar' };

formPoster.postForm(url, data, () => {
    console.log('done');
});

Development

To install dependencies:

npm install

To transpile source code:

npm run build

To bump and tag a release:

npm run release

FAQs

Package last updated on 26 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc