{"id":41281,"library":"idea-toolbox","title":"IDEA Toolbox","description":"A collection of utility functions and data structures maintained by iter IDEA for internal projects. The current stable version is 7.2.0. It provides commonly needed tools like Address, DateUtils, and other helpers, all with TypeScript type definitions. It is designed for modern JavaScript/TypeScript environments and is released periodically alongside iter IDEA's projects. Key differentiators: full TypeScript support, comprehensive documentation via TypeDoc, and a focus on practical utilities needed in production applications.","status":"active","version":"7.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/iter-idea/IDEA-toolbox","tags":["javascript","idea","utilities","resource","typescript"],"install":[{"cmd":"npm install idea-toolbox","lang":"bash","label":"npm"},{"cmd":"yarn add idea-toolbox","lang":"bash","label":"yarn"},{"cmd":"pnpm add idea-toolbox","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Address is a named export, not a default one.","wrong":"import Address from 'idea-toolbox'","symbol":"Address","correct":"import { Address } from 'idea-toolbox'"},{"note":"The package is ESM-only, use import statements.","wrong":"const DateUtils = require('idea-toolbox').DateUtils","symbol":"DateUtils","correct":"import { DateUtils } from 'idea-toolbox'"},{"note":"Do not import from internal paths; use the package root.","wrong":"import { Utils } from 'idea-toolbox/src/utils'","symbol":"Utils","correct":"import { Utils } from 'idea-toolbox'"}],"quickstart":{"code":"import { Address, DateUtils } from 'idea-toolbox';\n\n// Validate an Ethereum address\nconst addr = '0x742d35Cc6634C0532925a3b844Bc7dC125a432b0';\nconsole.log(Address.isAddress(addr)); // true\n\n// Format a date\nconst formattedDate = DateUtils.format(new Date(), 'YYYY-MM-DD');\nconsole.log(formattedDate);\n","lang":"typescript","description":"Demonstrates importing and using Address and DateUtils from idea-toolbox to validate an Ethereum address and format a date."},"warnings":[{"fix":"Replace ObjectUtils.deepClone with structuredClone or JSON.parse(JSON.stringify(obj)).","message":"Version 5.0.0 removed the old ObjectUtils functions. Use built-in methods instead.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Ensure addresses are passed as strings.","message":"Version 6.0.0 changed Address.isAddress to only accept strings; previously it accepted other types.","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Replace StringUtils.capitalize with str.charAt(0).toUpperCase() + str.slice(1).","message":"The StringUtils class is deprecated since v7.0.0; use native JavaScript string methods instead.","severity":"deprecated","affected_versions":">=7.0.0"}],"env_vars":null,"search_vec":"'7.2.0':23 'address':30 'alongsid':51 'applic':74 'collect':4 'common':26 'comprehens':61 'current':19 'data':9 'dateutil':31 'definit':39 'design':42 'differenti':57 'document':62 'environ':46 'focus':67 'full':58 'function':7 'helper':34 'idea':1,14,53,76 'intern':16 'iter':13,52 'javascript':75 'javascript/typescript':45 'key':56 'like':29 'maintain':11 'modern':44 'need':27,71 'period':50 'practic':69 'product':73 'project':17,55 'provid':25 'releas':49 'resourc':78 'stabl':20 'structur':10 'support':60 'tool':28 'toolbox':2 'type':38 'typedoc':64 'typescript':37,59,79 'util':6,70,77 'version':21 'via':63","created_at":"2026-06-04T18:51:38.966607+00:00","updated_at":"2026-06-04T18:51:38.966607+00:00","problems":[{"fix":"Add 'type':'module' to your package.json or rename files to .mjs.","cause":"The package is ESM-only but the project uses CommonJS without 'type':'module' in package.json.","error":"SyntaxError: Cannot use import statement outside a module"},{"fix":"Use 'import { Address } from 'idea-toolbox'' instead of 'import Address from 'idea-toolbox''.","cause":"Importing the package incorrectly (e.g., using default import instead of named import).","error":"TypeError: Address.isAddress is not a function"},{"fix":"Import from 'idea-toolbox' only: 'import { Utils } from 'idea-toolbox''.","cause":"Trying to import from internal source path instead of package root.","error":"Module not found: Error: Can't resolve 'idea-toolbox/src/utils'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://iter-idea.github.io/IDEA-toolbox/","github":"https://github.com/iter-idea/IDEA-toolbox","docs":null,"changelog":null,"pypi":null,"npm":"idea-toolbox","openapi_spec":null,"status_page":null,"smithery":null,"categories":["productivity"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}