Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fundamental-constants

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fundamental-constants

Fundamental constants and enumerations

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
68
decreased by-19.05%
Maintainers
1
Weekly downloads
 
Created
Source

Fundamentals

Fundamental constants and enumerations.

Some of their values are commonly known, for example the HOURS_PER_STELLAR_DAY is 24 and MAXIMAL_DAYS_IN_MONTH is 31. However without being stored to the constants with clear names, it will be the magic numbers.

Installation

npm i fundamental-constants -E

Content

Compute networking

Constant nameValue
NETWORK_PORT_MAXIMAL_VALUE65535
NETWORK_PORT_MINIMAL_VALUE1

Date and Time

Constant nameValue
HOURS_PER_STELLAR_DAY24
MAXIMAL_DAYS_IN_MONTH31
MINUTES_PER_HOUR60
SECONDS_PER_MINUTE60
ISO8601
Constant nameValue
CHARACTERS_COUNT_IN_FULL_ISO8601_STRING24
CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING10

Email

Constant nameValue
MINIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS3

Keywords

FAQs

Package last updated on 29 Dec 2023

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