New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dvlden/numen

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dvlden/numen

Get the length of a numerical value.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

numen

GitHub package.json version npm bundle size (scoped)

Numen

A utility module that returns correct length of a numerical value. Working with numbers is painful, especially in JavaScript world. Casting a number to a string, then using just .length to check the count is not sufficient enough.

Check test cases if you are interested in every possibility that it handles.


Installation

Use your favourite package manager... In my case that's pnpm.

pnpm i @dvlden/numen

Usage

Browser

import { numen } from '@dvlden/numen'

if (numen(123) === 3) {
  // do something
}

Node

const { numen } = require('@dvlden/numen')

if (numen(123) === 3) {
  // do something
}

Keywords

FAQs

Package last updated on 02 Dec 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc