How to use @navikt/fnrvalidator - 1 common examples

To help you get started, we’ve selected a few @navikt/fnrvalidator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github navikt / nav-frontend-moduler / packages / node_modules / nav-frontend-skjema / src / fnr-input.tsx View on Github external
onChange(e) {
        if (this.props.onValidate) {
            const valid = e.currentTarget.validity.valid && Validator.fnr(e.currentTarget.value).status === 'valid';
            this.props.onValidate(valid);
        }
    }
    render () {

@navikt/fnrvalidator

Validation for Norwegian national id numbers ("fødselsnummer" and "d-nummer")

MIT
Latest version published 3 years ago

Package Health Score

55 / 100
Full package analysis

Popular @navikt/fnrvalidator functions

Similar packages