is-nric

Validates if a given string is a Singaporean NRIC / FIN

Usage no npm install needed!

<script type="module">
  import isNric from 'https://cdn.skypack.dev/is-nric';
</script>

README

Usage

import { isNRIC } from 'is-nric'

isNRIC('S2793927I') // true
isNRIC('S3856097J') // false