Socket
Socket
Sign inDemoInstall

issn-verify

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

issn-verify

Verify ISSN (International Standard Serial Number)


Version published
Maintainers
1
Created
Source

issn-verify

Build Status

checks if an issn number is valid with regex and by confirming the check digit. regex and algorithm via http://en.wikipedia.org/wiki/International_Standard_Serial_Number

usage

via node/io.js

var issn = require('issn-verify');
var test = "0000-000X";

if ( issn(test) ) {
    // do something with a valid issn
} else {
    // do something with an invalid issn
}

in html

<script src="/path/to/issnVerify.js"></script>
<script>
    var input = document.getElementById('issn')
      , issn = null
      ;

    input.addEventListener('blur', function(e) {
        issn = e.target.value;
        if ( issn && !issnVerify(issn) ) {
            // do something
        }
    });
</script>

license

MIT

Keywords

FAQs

Package last updated on 04 Feb 2015

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