barakadax-sanitizer
v1.0.13
Published
CWEs sanitizer
Downloads
13
Maintainers
Readme
Barakadax Sanitizer
NPM package for sanitization to solve CWEs.
How to install:
npm i barakadax-sanitizer
Classes and what they solves:
import { Logging } from 'barakadax-sanitizer';
let logger: Logging = new Logging();
let inputString = 'This is a %1w test string %2x';
let sanitizedString = logger.sanitize(inputString);
console.log('Sanitized String:', sanitizedString);
import { Filing } from 'barakadax-sanitizer';
let filing: Filing = new Filing();
let filePath = '../myFolder/.\../myPic.png';
let sanitizedFilePath = filing.sanitize(filePath);
console.log('Sanitized String:', sanitizedFilePath);