Neat! Pickled Muskrat!

    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.

    Keywords

    none

    Install

    npm i integreat-adapter-form

    DownloadsWeekly Downloads

    9

    Version

    0.3.0

    License

    ISC

    Unpacked Size

    15.5 kB

    Total Files

    14

    Last publish

    Collaborators

    • kjellmorten