New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

feathers-query-stringify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-query-stringify

Flattens an nested Feathers Query and can generate a url query string or a flattened query object from it.

0.1.1
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

feathers-query-stringify

This simple code snippet converts feathersJS query objects into an url query string that you can use to build your REST API calls.

It can handle nestes Objects as well as Arrays.

Example

import stringify from "feathers-query-stringify";

const query = {
  $limit: 10,
  $sort: {
    createdAt: -1
  }
}

const output = stringify(query);

// => "$limit=10&$sort[createdAt]=-1"

Keywords

Feathers

FAQs

Package last updated on 19 Jun 2019

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