# form-urlencoded-post

> Posting form data like jquery's $.post

Latest version **1.0.1** (published 2017-08-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install form-urlencoded-post
pnpm add form-urlencoded-post
yarn add form-urlencoded-post
bun add form-urlencoded-post
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-08-01 |
| First published | 2017-08-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joe Roddy |
| Maintainers | joeroddy |
| Keywords | post, form, urlencoded, request, jquery, react, native |

## Links

- npm: https://www.npmjs.com/package/form-urlencoded-post
- Repository: https://github.com/JoeRoddy/form-urlencoded-post
- Homepage: https://github.com/JoeRoddy/form-urlencoded-post#readme
- Issues: https://github.com/JoeRoddy/form-urlencoded-post/issues
- npm.io page: https://npm.io/package/form-urlencoded-post

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-08-01
- 1.0.0 — 2017-08-01

## README

# form-urlencoded-post
Jquery post alternative for application/x-www-form-urlencoded post requests.

Can't use jquery for size reasons?  Because you can't access the dom?  Trying to post in React Native? We gotchu..

### Installation
```shell
$ npm install --save form-urlencoded-post
```

### Example

```javascript
import {post} from 'form-urlencoded-post';

let user = {name:'joe', skills:['dank memes']};

post('https://www.myapiurl.com/createUser', user).then(res => {
    console.log("response:", res)
})
```
The post() call will return a [thenable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) from a [fetch()](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) call.

You can also just [add the code](index.js) to your source if you need some customization. At the moment it's only 16 lines.

---
_Source: https://npm.io/package/form-urlencoded-post · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
