Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 627 Bytes

README.md

File metadata and controls

44 lines (25 loc) · 627 Bytes

is-pin-good

Checks if a given pin code is secure.

Statistically, one third of all four digit codes can be guessed by trying just 61 distinct combinations. Don't believe us? PIN number analysis

Install

$ npm install is-pin-good

Usage

const isPinGood = require('is-pin-good');

isPinGood('1234');
//=> false

isPinGood('8615');
//=> true

isPinGood('5555');
//=> false

API

isPinGood(input)

Returns a boolean.

input

Type: string

The pin code to check.

License

MIT © Medipass Solutions