FLUTTER ECOSYSTEM

close2/mod97

ISO7064에 명시된 대로 전달된 숫자의 MOD 97 10을 계산합니다.

mod97 프로젝트 이미지
Stars
0
Forks
1
최근 푸시(UTC)
2021. 3. 9.
프로젝트 상태
활성
Christian Loitsch GitHub avatar
GITHUB User

Christian Loitsch ↗

Austria
언어Dart

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 1 개
  • test개발 의존성>1.16.0 <2.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

mod97

Calculates the MOD 97 10 of the passed number as specified in ISO7064.

Only positive numbers are allowed.

I have copied this code from iban.js

Build Status

Usage

A simple usage example:

import 'package:mod97/mod97.dart';

main() {
  int m = mod97('1234567');
  
  int m2 = mod97('-123', onError: (_) => 5);
  // m2 will be 5
}

The input must be a String. Returned value is an integer.

Invalid characters throw a FormatException unless an onError function is provided.