搜索
⌘K
搜索 160+ 个工具…
⌘K
Toggle theme
声音关闭
EN
请我喝杯咖啡
开发
代码格式化工具
格式化多种语言的代码:JavaScript、Python、CSS 等。 在你的设备上运行——不上传、不存储任何内容。
输入
function fibonacci(n) { if (n <= 1) return n; return fibonacci(n - 1) + fibonacci(n - 2); } function processData(data) { return data .filter(item => item.active) .map(item => ({ id: item.id, name: item.name.toUpperCase(), timestamp: new Date(item.createdAt) })) .sort((a, b) => b.timestamp - a.timestamp); } class DataProcessor { constructor(config) { this.config = config; this.cache = new Map(); } async process(input) { if (this.cache.has(input)) { return this.cache.get(input); } const result = await this.transform(input); this.cache.set(input, result); return result; } transform(data) { return new Promise((resolve) => { setTimeout(() => { resolve(data.map(x => x * 2)); }, 100); }); } }
输出
相关工具
↗
UUID 生成器
开发
↗
Unix 时间戳
开发
↗
正则表达式测试器
开发