All Projects → knowledgecode → jquery-param

knowledgecode / jquery-param

Licence: MIT License
equivalent function to jQuery.param

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to jquery-param

gamemaker-godot-dictionary
A dictionary for people moving from GM:S to Godot
Stars: ✭ 172 (+230.77%)
Mutual labels:  equivalent
GraphQL-Blueprint
GraphQL Blueprint: a software developer tool for engineers that want to quickly generate React/Express, Apollo and GraphQL boilerplate code using a data modeling interface. Watch your queries, mutations, and schema update in realtime with our code preview feature and finally, export it when you're ready to begin building the rest of your app!
Stars: ✭ 74 (+42.31%)
Mutual labels:  post
postbuildscript-plugin
The PostBuildScript Jenkins plugin lets you execute a set of scripts at the end of the build depending on the build status.
Stars: ✭ 40 (-23.08%)
Mutual labels:  post
seenreq
Generate an object for testing if a request is sent, request is Mikeal's request.
Stars: ✭ 42 (-19.23%)
Mutual labels:  post
cypress-upload-file-post-form
Solution for two Cypress testing use-cases I came across with: perform a direct http FORM request to the server containing a file and other parameters and upload a file into a form before submission
Stars: ✭ 59 (+13.46%)
Mutual labels:  post
gophp
Golang implementation for PHP's functions
Stars: ✭ 50 (-3.85%)
Mutual labels:  serialize
woodpecker
woodpecker http client for Android
Stars: ✭ 17 (-67.31%)
Mutual labels:  post
rest-api-endpoints
🌾 WordPress REST API endpoints
Stars: ✭ 31 (-40.38%)
Mutual labels:  post
django-serializable-model
Django classes to make your models, managers, and querysets serializable, with built-in support for related objects in ~150 LoC
Stars: ✭ 15 (-71.15%)
Mutual labels:  serialize
excel to scriptableobject
An easy way to access data stated in excel (xlsx) files for Unity.
Stars: ✭ 36 (-30.77%)
Mutual labels:  serialize
Channel-Message-Editor
A telegram channel message editor bot.
Stars: ✭ 21 (-59.62%)
Mutual labels:  post
Tieba-Birthday-Spider
百度贴吧生日爬虫,可抓取贴吧内吧友生日,并且在对应日期自动发送祝福
Stars: ✭ 28 (-46.15%)
Mutual labels:  post
hprose-as3
Hprose for ActionScript 3.0
Stars: ✭ 18 (-65.38%)
Mutual labels:  serialize
vuepress-plugin-autometa
Auto meta tags plugin for VuePress 1.x
Stars: ✭ 40 (-23.08%)
Mutual labels:  post
odin
Data-structure definition/validation/traversal, mapping and serialisation toolkit for Python
Stars: ✭ 24 (-53.85%)
Mutual labels:  serialize
protocol
This repo contains the Spacemesh protocol specifications and related documentation
Stars: ✭ 29 (-44.23%)
Mutual labels:  post
ikeapack
Compact data serializer/packer written in Go, intended to produce a cross-language usable format.
Stars: ✭ 18 (-65.38%)
Mutual labels:  serialize
php curl
Curl is an open source file transfer tool that uses URL syntax to work on the command line, where the basic functions of curl are encapsulated, such as COOKIES / encrypted transport / HTTP authentication / analog forms / upload files, etc.
Stars: ✭ 38 (-26.92%)
Mutual labels:  post
wumpfetch
🚀🔗 A modern, lightweight, fast and easy to use Node.js HTTP client
Stars: ✭ 20 (-61.54%)
Mutual labels:  post
bluetooth-gatt-parser
Bluetooth GATT service and characteristic parser
Stars: ✭ 61 (+17.31%)
Mutual labels:  serialize

jquery-param

Circle CI

Features

  • Equivalent to jQuery.param (based on jQuery 3.x)
  • No dependencies
  • Universal (Isomorphic)
  • ES Modules Support

Installation

Node.js:

npm install jquery-param --save

the browser:

<script src="/path/to/jquery-param.min.js"></script>

Usage

CommonJS:

const param = require('jquery-param');

const obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
const str = param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"

TypeScript:

import param from 'jquery-param';

const obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
const str = param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"

You will need to add "esModuleInterop": true to the "compilerOptions" field in tsconfig.json.

ES Modules:

<script type="module">
import param from './esm/jquery-param.es.js';

const obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
const str = param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
</script>

Older browser:

<script>
var obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
var str = window.param(obj);    // global object
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
</script>

Browser Support

Chrome, Firefox, Safari, Edge, and IE9+.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].