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

goquery

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goquery

GO Query! is a javascript library to execute queries into array of objects. You can perorm a SELECT, UPDATE or REMOVE into your array based on the objects and filters

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

GO Query!

[Build Status] (https://travis-ci.org/rubenspgcavalcante/GO-Query) [Bower Module] (https://badge.fury.io/hooks/github) npm version Bitdeli Badge

##About GO Query! is a javascript library to execute queries into array of objects. You can perorm a SELECT, UPDATE or REMOVE into your array based on the objects and filters.

##Download Latest development version: source file

Latest production version 1.0.2: minified

###Why use it? Sometimes, you just want to search into a array of objects in a simple way, but with more complex filters, avoiding to do a request to the server and wait for server response time and network transfer time.

###Where can I use it? Well, you can use in client-side, but you can use it in server side too (nodejs, commonjs).

###Dependeces? Nope!

###How can I use? Well, let's suppose we have a array of 'users' and need to find all who are older than 20 years or have the first name John and works on company ACME

var query = new GO.Query(objArray);
query = query.select("*")
             .from(Object)
             .where(
                 new GO.Filter("age", GO.op.GTE, 21)
                       .or("name", GO.op.LIKE, /^John/)
                       .and("company.name", GO.op.EQ, "ACME")
             );

var result = query.run();

###Using with Node.js? first intall via npm

npm install goquery

... and import the module

//import
var GO = require("goquery");

//use
var q = new GO.Query(data);
//...

###More details? See the API

#Building If you want to build the sources, you will need first install all dependences and after intall the grunt client globally:

npm install
sudo install -g grunt-cli

To run the tasks:

grunt

##Author Rubens Pinheiro Gonçalves Cavalcante
email: rubenspgcavalcante@gmail.com

##License & Rights

Using GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 gnu.org

Keywords

FAQs

Package last updated on 01 Dec 2014

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