New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

is-query-valid

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

is-query-valid

Performs query validation on field/variable list

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
4
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

is-query-valid

build status AppVeyor Build Status

Performs query validation on field/variable list.
Validation includes brackets and double quotes

Get it

npm install --save is-query-valid

Usage

var isQueryValid = require('is-query-valid')
var arr = ['[absolutely]', ',[everybody]', ',[is]', ',[free]']

isQueryValid(arr, (err, isTrue) => {
  if (err) throw err
  console.log('Query Validator returns', isTrue)
})
// Query Validator returns true

API

isQueryValid(arr)

arr string array

Returns true if each matches query formatting rule and false if not

Rule: Any word is enclosed by double quotation marks or opening and closing brackets.

License

MIT

Keywords

query

FAQs

Package last updated on 22 Feb 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