New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ambitiondev/form-utils

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ambitiondev/form-utils

A bundle of form utilities for usage in your (web)app

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ambitiondev Form utils

This bundle contains some useful form utilities to use in your (web)app.

..

Table of contents

1.Installation
2.Features

1. Installation

Simply execute the following:

    npm i @ambitiondev/form-utils --save

or:

    yarn add @ambitiondev/form-utils

2. Features

formDataToJson

This function converts your formdata entries to a JSON-object. Useful for endpoints that require JSON in stead of form data.

usage:
    import { formDataToJSON } from '@ambitiondev/form-utils'

    const form = document.querySelector('form');
    const data = new FormData(form);

    ...

    const processedData = formDataToJSON(data);

This should return your form data as an object, like so:

    {
        "name": "developer@testdata.dev",
        "address": "Ambition street 4",
        ...
    }

Keywords

FAQs

Package last updated on 12 Oct 2020

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