Socket
Book a DemoInstallSign in
Socket

check-cas-number

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-cas-number

Check the validity of a CAS number (RN)

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

check-cas-number

NPM version build status Test coverage npm download

Check the validity of a CAS number (RN).

Installation

$ npm i check-cas-number

Usage

import { check } from 'check-cas-number';
import { FifoLogger } from 'fifo-logger'; // possibility to have a logger

check('50-00-0'); // true
check('50-00-1'); // false

// you can get more information about the reason it was false
const logger = new FifoLogger();
check('50-00-1', { logger }); // false

console.log(logger.getLogs());

License

MIT

FAQs

Package last updated on 16 Sep 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