integreat-adapter-form
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

application/x-www-form-urlencoded adapter for Integreat

Adapter that lets Integreat send and receive content in application/x-www-form-urlencoded encoding.

npm Version Build Status Coverage Status Maintainability

Getting started

Prerequisits

Requires node v10 and Integreat v0.7.

Installing and using

Install from npm:

npm install integreat-adapter-form

Example of use:

const integreat = require('integreat')
const formAdapter = require('integreat-adapter-form')
const defs = require('./config')
 
const resources = integreat.resources(formAdapter)
const great = integreat(defs, resources)
 
// ... and then dispatch actions as usual

Example source configuration:

{
  id: 'store',
  adapter: 'form',
  endpoints: [
    { options: { uri: 'https://api.com/accepting/form' } }
  ]
}

Data will be sent with application/x-www-form-urlencoded encoding [as described in the W3C Forms specification]](https://www.w3.org/TR/html401/interact/forms.html#didx-applicationx-www-form-urlencoded).

Running the tests

The tests can be run with npm test.

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests.

License

This project is licensed under the ISC License - see the LICENSE file for details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    13
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i integreat-adapter-form

Weekly Downloads

13

Version

0.3.0

License

ISC

Unpacked Size

15.5 kB

Total Files

14

Last publish

Collaborators

  • kjellmorten