
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
fjl-input-filter
Advanced tools
[](https://travis-ci.org/functional-jslib/fjl-input-filter) [](http://badge.fury.io/gh/function
Input filter validation functions - These allows you to create input and input-filter objects that can be used (by included utility functions) to easily validate a body of input fields quickly and easily (see usage examples further below).
import {...} from 'fjl-input-filter';
const {...} = require('fjl-input-filter');
See desired export type below:
fjlInputFilter
as a global).JSDocs are here (https://functional-jslib.github.io/fjl-input-filter/) [https://functional-jslib.github.io/fjl-input-filter/].
Docs in readme aren't fully fleshed out yet (see jsdocs, usage examples, and/or tests instead).
Input
methodsnoValidationRequired, validateInput, validateIOInput, runValidators,
runIOValidators, runFilters, runIOFilters, toInput,
toInputValidationResult, Input
InputFilter
methodsvalidateInputFilter, validateIOInputFilter, validateIOInputWithName,
toInputFilter, toInputFilterResult, InputFilter
In-line summary docs follow:
validateInputFilter(inputFilter, incomingData)
validateIOInputFilter(inputFilter, incomingData, ioErrorHandler)
validateInput(inputObj, value)
validateIOInput(inputObj, value, ioErrorHandler)
toInputFilter(inputsObj, breakOnFailure {Boolean}, out = {})
toInputFilterResult(resultObj, out = {})
toInputValidationResult(resultObj)
toInput(inputOptions, out = {})
Input(options)
validate(data) : InputValidationResult
validateIO(data) : Promise.<InputValidationResult>
InputFilter(inputsObj, breakOnFailure {Boolean})
validate(data) : InputFilterResult
validateIO(data) : Promise.<InputFilterResult>
See: fjl-validator repo/module
Using jest
(see './package.json' scripts).
BSD 3 Clause - Included in sources.
Removed uncurried methods (methods ending with $
) (use curried methods instead).
Removed:
errorIfNotTypeOnTarget$
- ('fjl' provides this now)
errorIfNotTypeOnTarget
- ("")
defineEnumProps$
defineProps$
Renamed auxillary methods:
_descriptorForSettable
becomes createTypedDescriptor
._makeDescriptorEnumerable
becomes toEnumerableDescriptor
._targetDescriptorTuple
becomes toTargetDescriptorTuple
.mocha
and chai
with jest
.FAQs
[](https://travis-ci.org/functional-jslib/fjl-input-filter) [](http://badge.fury.io/gh/function
The npm package fjl-input-filter receives a total of 1 weekly downloads. As such, fjl-input-filter popularity was classified as not popular.
We found that fjl-input-filter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.