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

atropa-formdata-generator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atropa-formdata-generator

Generates a function to produce FormData objects based on a given HTML form.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#atropa-formdata-generator

Generates a function to produce FormData objects based on a given HTML form.

Try it

You can try this in your browser at [try it.html] (http://matthewkastor.github.io/atropa-formdata-generator/try%20it.html)

Where do I get it?

You can download it from github at [https://github.com/matthewkastor/atropa-formdata-generator] (https://github.com/matthewkastor/atropa-formdata-generator) or, if you have node installed you can get it from npm

npm install atropa-formdata-generator

Usage

In Browser

Using this module in your browser is as simple as including it in your page. See [example.html] (http://matthewkastor.github.io/atropa-formdata-generator/example.html) in the root directory of this package.

// include atropa-formdata-generator.js in your page.
// generate a function that accepts a single options object.
var takesOptions = formdataGenerator(
    document.forms[0], // the form to process
    'myFormDataFunction', // the name for your generated function
    true // whether to use a single options arg, or to use many named args.
);

// generate a function that takes named parameters.
var takesNames = formdataGenerator(
    document.forms[0],
    'myFormDataFunction'
);

console.log(takesOptions);

Docs

Documentation is in the docs/jsdoc folder. Visual Studio intellisense files are in docs/vsdocs

Keywords

FAQs

Package last updated on 04 Sep 2013

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