New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cinovo-isin-validator

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cinovo-isin-validator

International Securities Identification Number validator

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status NPM version NPM dependencies

cinovo-isin-validator

Validate International Securities Identification Number (ISIN) . Checks:

  • if the format is correct
  • if the Country Code is correct
  • if the check digit is correct

Getting started

npm install cinovo-isin-validator

sync style

var validator = require("cinovo-isin-validator");
if (validator("XX000A1G0AE8")) {
	console.log("ISIN is invalid!");
} else {
	console.log("ISIN is fine!");
}

async style

var validator = require("cinovo-isin-validator");
validator("XX000A1G0AE8", function(err) {
	if (err) {
		console.log("ISIN is invalid!", err);
	} else {
		console.log("ISIN is fine!");
	}
});

Options

  • checkCountryCode: Boolean - validate of Country Code (Default: true)

  • checkCheckDigit: Boolean - validate of Check Digit (Default: true)

    var validator = require("cinovo-isin-validator"); if (validator("XX000A1G0AE8"), undefined, {checkCountryCode: false, checkCheckDigit: false}) { console.log("ISIN is invalid!"); } else { console.log("ISIN is fine!"); }

    var validator = require("cinovo-isin-validator"); validator("XX000A1G0AE8", function(err) { if (err) { console.log("ISIN is invalid!", err); } else { console.log("ISIN is fine!"); } }, {checkCountryCode: false, checkCheckDigit: false});

Keywords

FAQs

Package last updated on 24 Feb 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc