UNPKG

backend-smith

Version:

A CLI tool for automating backend component generation in Express.js, including modules, schemas, routes, services, and more.

4 lines 188 B
export const formatFieldArgsHepler = (fields: string[]): string[] => { return fields.join(' ').match(/(\*?\w+:\{[^}]+\})|(\*?\w+:\[[^\]]+\])|(\*?\w+:\w+(\s*\|\s*\w+)*)/g ) || []; }