
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
A modern, efficient, and modular JavaScript utility library designed to enhance developer productivity.
English | ็ฎไฝไธญๆ
funtool
is a modern, modular JavaScript utility library designed to boost developer productivity. It offers well-organized modules, full TypeScript support, and an automated documentation system, making it suitable for multilingual projects, web applications, Node.js environments, and more. This project is a complete refactor of an older utility library, with versioning reset. Written in TypeScript, it features a cleaner structure, enhanced flexibility, and a more robust documentation system. funtool
provides type-safe, reusable utility functions that significantly improve development efficiency for both JavaScript and TypeScript projects.
๐ Documentation
๐ View Full Docs ยป
array
, object
, string
, or type
modulesโto keep bundle size minimal.npm install funtool
# or
pnpm add funtool
import { isString } from 'funtool/type';
import { isNumber } from 'funtool';
console.log(isNumber(1)); // โ
true
console.log(isString('hello')); // โ
true
import { regex } from 'funtool';
const mobile = "13800138000";
console.log(
regex.checker(mobile).use('mobile').isValid()
); // โ
true
src/
โโโ array/ # Array utilities
โโโ common/ # Common/shared utilities
โโโ function/ # Function-related utilities
โโโ object/ # Object utilities
โโโ regex/ # Regular expression utilities
โโโ string/ # String utilities
โโโ type/ # Type checking utilities
โโโ version.ts # Version information
โโโ index.ts # Main entry point
npm run dev
npm run build
npm run test
npm run generate:module
pnpm run release
You can explore more advanced usage, module API reference, and examples in the official documentation: ๐ Docs
Copyright (c) 2019-present xiaoqiujun
FAQs
A modern, efficient, and modular JavaScript utility library designed to enhance developer productivity.
The npm package funtool receives a total of 6 weekly downloads. As such, funtool popularity was classified as not popular.
We found that funtool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.