@mbremi/fnvalidator
v1.0.3
Published
fnValidator for austrian commercialRegisterNumbers
Downloads
2
Readme
fnValidator
Validates Austrian FN-Numbers
- validates by calculating the check digit
- ignores "FN" and spaces
Installation
npm install @mbremi/fnvalidator --save
yarn add @mbremi/fnvalidator
bower install @mbremi/fnvalidator --save
Usage
Javascript
var fnvalidator = require('@mbremi/fnvalidator');
var isValid = fnvalidator.isValidFnNumber('FN 12345 F');
Output should be true
TypeScript
import { isValidFnNumber } from '@mbremi/fnvalidator';
console.log(isValidFnNumber('12345F'))
Output should be true
AMD
define(function(require,exports,module){
var fnvalidator = require('@mbremi/fnvalidator');
});
Test
npm run test