1.1.0 • Published 4 years ago

sats-sqlinject-module v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

This will help in using the functionalites.

Below are example for using the various functions available in the Package

If the Parameter has sql injection then the response will be false else it will be true.

Validating a Param

============================================ const sqlinject = require('sats-sqlinject-module');

async function main(){ var result = await sqlinject.sqlInjectString('Hello World'); console.log('This has no sql injection'+ result); }

========================================= Validating a json const sqlinject = require('sats-sqlinject-module');

async function main(){ const obj = = '{"result":";true", "count":";42"}' var result = await sqlinject.sqlInjectJson(obj); console.log('This has no sql injection'+ result);

}

Validating a json List const sqlinject = require('sats-sqlinject-module');

async function main(){ const objList = {"result":"true", "count":"42"}, {"result":"true", "count":"42"} ; var result = await sqlinject.sqlInjectJsonList(objList); console.log('This has no sql injection'+ result); }

Contributor Satish MIT lecense.