npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodejs-weblineindia-fiscal-validation

v1.0.2

Published

A NodeJS component used for Fiscal validation and its property value.

Downloads

12

Readme

Fiscal-validation

A NodeJS component used for Fiscal validation and its property value.

Table of contents

Getting started

Install the npm package:

npm install nodejs-weblineindia-fiscal-validation
#OR
yarn add nodejs-weblineindia-fiscal-validation

Features

  • This component checks whether fiscal code is valid or not.
  • It also checks fiscal code property value if it valid or not.
  • Below Property value must be used as argument:
    • firstname
    • lastname
    • dob
    • gender
    • placeofbirth

Usage

Use fiscalValidation function to validate fiscal code and its property value:

const fiscal = require('nodejs-weblineindia-fiscal-validation')
OR
import fiscal from 'nodejs-weblineindia-fiscal-validation'

Validate only Fiscal code

//check fiscal code
let isfiscalvalid = false
isfiscalvalid = fiscal.fiscalValidation('LSTFST94H15F205V') // true
isfiscalvalid = fiscal.fiscalValidation('LSTFST94H15F205F') // false
isfiscalvalid = fiscal.fiscalValidation('') // false

Validate Firstname

//check Firstname
let isfirstnamevalid = false
isfirstnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','firstname','fname') // true
isfirstnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','firstname','name') // false
isfirstnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','firstname','') // false
isfirstnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z','firstname','name') // false
isfirstnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','fname','name') // false
isfirstnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','','fname') // false

Validate Lastname

//check Lastname
let islastnamevalid = false
islastnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','lastname','lname') // true
islastnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','lastname','fllname') // false
islastnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','lastname','') // false
islastnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z','lastname','fllname') // false
islastnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','lname','fllname') // false
islastnamevalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','','lname') // false

Validate Date of Birth

//check Date of birth
let isdobvalid = false
isdobvalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','dob','1992-01-05') // true
isdobvalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','dob','1993-01-05') // false
isdobvalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','dob','') // false
isdobvalid = fiscal.fiscalValidation('LNMFNM92A05Z','dob','1993-01-05') // false
isdobvalid = fiscal.fiscalValidation('LNMFNM92A05Z','dateofbirth','1993-01-05') // false
isdobvalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','','1992-01-05') // false

Validate Gender

//check Gender
let isgendervalid = false
isgendervalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','gender','M') // true
isgendervalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','gender','F') // false
isgendervalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','gender','') // false
isgendervalid = fiscal.fiscalValidation('LNMFNM92A05Z1','gender','F') // false
isgendervalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','gen','F') // false
isgendervalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','','M') // false

Validate Place of birth

//check Place of birth
let isplaceofbirthvalid = false
isplaceofbirthvalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','placeofbirth','ROMANIA') // true
isplaceofbirthvalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','placeofbirth','ROMA') // false
isplaceofbirthvalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','placeofbirth','') // false
isplaceofbirthvalid = fiscal.fiscalValidation('LNMFNM92A05Z','placeofbirth','ROMANIA') // false
isplaceofbirthvalid = fiscal.fiscalValidation('LNMFNM92A05Z1','placeofbirth','ROMA') // false
isplaceofbirthvalid = fiscal.fiscalValidation('LNMFNM92A05Z129B','','ROMANIA') // false

Want to Contribute?

  • Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).
  • Fork it.
  • Create new branch to contribute your changes.
  • Commit all your changes to your branch.
  • Submit a pull request.

Need Help?

We also provide a free, basic support for all users who want to use this NodeJS Fiscal validation component in their software project. In case you want to customize this Fiscal validation component to suit your development needs, then feel free to contact our NodeJS developers.


Collection of Components

We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development.


Changelog

Detailed changes for each release are documented in CHANGELOG.md.

Credits

nodejs-weblineindia-fiscal-validation is inspired by @marketto/codice-fiscale-utils.

License

MIT

Keywords

nodejs-weblineindia-fiscal-validation, nodejs-fiscal-validation, fiscal-validation, fiscal, nodejs, node-component, nodecomponent, node