How investira/investira.sdk.js works
investira.sdk is a CommonJS utility library consumed by Node.js applications, not a standalone service. Its entry point exports reusable utilities for dates, finance, HTTP, text and validation, alongside message contracts and helper structures; loading it also installs Date prototype extensions. The README’s integrated example documents an API-request workflow using response extraction, numeric conversion, formatting, dates and standardized messages. Internal dependency edges below are limited to relationships visible in the README or source index; unsampled modules are represented by their documented capabilities, not inferred behavior.
Main entry points: index.js SDK entry · validators.js Validators · dates.js Date utilities · numbers.js Number utilities
Components 21
SDK entry and contracts
- SDK entry
index.js - HTTP requests
lib/utils/httpRequests.js - Response helpers
lib/utils/responses.js - Message catalog
lib/messages
Data and calculations
- Validators
lib/utils/validators.js - Array utilities
lib/utils/arrays.js - Object utilities
lib/utils/objects.js - Number utilities
lib/utils/numbers.js - Date utilities
lib/utils/dates.js - Financial calculations
lib/utils/invests.js
Text and presentation
- Value formatting
lib/utils/formats.js - String utilities
lib/utils/strings.js - RAG utilities
lib/utils/rags.js - Spell checker
lib/utils/spellChecker.js - Theme palettes
lib/utils/themes.js
Scheduling and structures
- Scheduled tasks
lib/hofs/tasks.js - Matrix structure
lib/hofs/matrix.js - Typed data model
lib/hofs/dataModel.js - Date extensions
lib/plugins/date.js
Other components
- Node.js application
- External API
Connections 48
- Node.js application → SDK entry: imports
README.md - SDK entry → HTTP requests: exports
index.js - SDK entry → Response helpers: exports
index.js - SDK entry → Message catalog: exports
index.js - SDK entry → Validators: exports
index.js - SDK entry → Array utilities: exports
index.js - SDK entry → Object utilities: exports
index.js - SDK entry → Number utilities: exports
index.js - SDK entry → Date utilities: exports
index.js - SDK entry → Financial calculations: exports
index.js - SDK entry → Value formatting: exports
index.js - SDK entry → String utilities: exports
index.js - SDK entry → RAG utilities: exports
index.js - SDK entry → Spell checker: exports
index.js - SDK entry → Theme palettes: exports
index.js - SDK entry → Scheduled tasks: exports
index.js - SDK entry → Matrix structure: exports
index.js - SDK entry → Typed data model: exports
index.js - SDK entry → Date extensions: loads
index.js - Node.js application → HTTP requests: requests through
README.md - HTTP requests → External API: calls
- Node.js application → Response helpers: extracts data
README.md - Node.js application → Number utilities: converts values
README.md - Node.js application → Value formatting: formats values
README.md - Node.js application → Date utilities: formats dates
README.md - Node.js application → Message catalog: creates message
README.md - Date utilities → Number utilities: imports
lib/utils/dates.js - Date utilities → Validators: imports
lib/utils/dates.js - Date utilities → Array utilities: imports
lib/utils/dates.js - Value formatting → Number utilities: imports
lib/utils/formats.js - Value formatting → Date utilities: imports
lib/utils/formats.js - Value formatting → Validators: imports
lib/utils/formats.js - Financial calculations → Number utilities: imports
lib/utils/invests.js - Object utilities → Validators: imports
lib/utils/objects.js - Object utilities → Date utilities: imports
lib/utils/objects.js - Array utilities → Validators: imports
lib/utils/arrays.js - Number utilities → Validators: imports
lib/utils/numbers.js - Response helpers → Validators: imports
lib/utils/responses.js - Response helpers → Array utilities: imports
lib/utils/responses.js - String utilities → Validators: imports
lib/utils/strings.js - String utilities → Array utilities: imports
lib/utils/strings.js - Spell checker → String utilities: imports
lib/utils/spellChecker.js - Spell checker → Validators: imports
lib/utils/spellChecker.js - Spell checker → Message catalog: imports
lib/utils/spellChecker.js - Scheduled tasks → Date utilities: imports
lib/hofs/tasks.js - Scheduled tasks → Validators: imports
lib/hofs/tasks.js - Scheduled tasks → Object utilities: imports
lib/hofs/tasks.js - Typed data model → Object utilities: imports
lib/hofs/dataModel.js