Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@ticketmaster/moohash

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ticketmaster/moohash

npm package of toQueryString from mootools-server to use with nodejs


Version published
Maintainers
1
Created
Source

Moohash

For more information about mootools in general, visit http://mootools.net

In short it is a library for web development, with support for OOP.

This package is a port of https://github.com/vsviridov/mootools-node which implements only toQueryString.

Usage

var request = require('superagent');
var moohash = require('moohash');

var items = { item: [ ] };
items.item.push({
  col1: [ "foo" ],
  col2: [ "bar" ]
});

request
  .get('/some/url')
  .query(moohash.toQueryString(items));

This causes a URL like this to be generated:

/some/url?item[0][col1][0]=foo&item[0][col2][0]=bar

Changes from upstream

  • dangerous Object modifications removed
  • _.each instead of their custom Object.each
  • typeOf changed to not throw error when "item" is a string
  • expand != null to !== null && !== undefined

Keywords

FAQs

Package last updated on 19 Aug 2015

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