Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/danet/validation.ts>isEAN

The most mature backend framework for Deno. Create awesome HTTP and WebSocket server as well as KVQueue workers !
Latest
function isEAN
import { isEAN } from "https://deno.land/x/danet@2.4.1/validation.ts";

Check if string is valid EAN: Matches EAN-8/EAN-13 regex Has valid check digit.

Parameters

str: string

Returns

boolean