Socket
Book a DemoInstallSign in
Socket

mod10-check-digit

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
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

mod10-check-digit

Calculate the check digit(mod10 algorithm)

unpublished
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
375
-44.69%
Maintainers
1
Weekly downloads
 
Created
Source

mod10-check-digit

Calculate the check digit(mod10 algorithm)

Package version Downloads Standard Travis Build Standard Readme GitHub version Dependency CI License PRs Donate


Built with ❤︎ by Tiaan and contributors

Table of Contents

Table of Contents
  • Install
  • Usage
  • CLI
  • Contribute
  • License
  • Install

    $ npm install --save mod10-check-digit
    # OR
    $ yarn add mod10-check-digit
    

    Usage

    Module exports a single function that takes a number string as argument and returns the check digit number.

    const mod10CheckDigit = require('mod10-check-digit')
    
    console.log(mod10CheckDigit('9202204720082')) // 2
    console.log(mod10CheckDigit('7992739871')) // 3
    console.log(mod10CheckDigit('7240157335352')) // 4
    
    

    CLI

    $ npm install --global mod10-check-digit
    # OR
    $ yarn global add mod10-check-digit
    

    Then:

    $ mod10-check-digit 9202204720082
    # 2
    

    Contribute

    Contributions are welcome. Please open up an issue or create PR if you would like to help out.

    Note: If editing the README, please conform to the standard-readme specification.

    License

    Licensed under the MIT License.

    Keywords

    mod10

    FAQs

    Package last updated on 24 Nov 2025

    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