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

criterion

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

criterion - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

.travis.yml

7

package.json

@@ -5,3 +5,3 @@ {

"author": "Maximilian Krüger <kruemaxi@googlemail.com> (http://github.com/snd)",
"version": "0.1.0",
"version": "0.2.0",
"repository": {

@@ -11,5 +11,8 @@ "type": "git",

},
"dependencies": {
"coffee-script": "1.4.0"
},
"devDependencies": {
"nodeunit": "*"
"nodeunit": "0.7.4"
}
}
# criterion
sql-where-criteria description language
[![Build Status](https://travis-ci.org/snd/criterion.png)](https://travis-ci.org/snd/criterion)

@@ -33,3 +34,3 @@ inspired by the [mongo query language](http://www.mongodb.org/display/DOCS/Advanced+Queries)

c.sql() # 'x = ?'
c.sql() # '(x = ?)'
c.params() # [7]

@@ -44,3 +45,3 @@ ```

fst.and(snd).sql() # 'x = ? AND y = ? AND z = ?'
fst.and(snd).sql() # '(x = ?) AND (y = ?) AND (z = ?)'
fst.and(snd).params() # [7, 'foo', true]

@@ -57,6 +58,6 @@

c.not().sql() # 'NOT (x = ? AND y = ?)'
c.not().sql() # 'NOT ((x = ?) AND (y = ?))'
c.not().params() # [7, 'foo', true]
c.not().not().sql() # 'x = ? AND y = ?'
c.not().not().sql() # '(x = ?) AND (y = ?)'
c.not().not().params() # [7, 'foo', true]

@@ -67,3 +68,3 @@ ```

### example arguments to `criterion`
### possible function arguments to `criterion`

@@ -70,0 +71,0 @@ ##### find where `x = 7` and `y = 'foo'`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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