Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function getTokens(code: string, transforms: Array): string {
try {
return getFormattedTokens(code, {transforms});
} catch (e) {
// eslint-disable-next-line no-console
console.error(e);
return e.message;
}
}