@jackdbd/eleventy-plugin-text-to-speech
Version:
Eleventy plugin that uses text-to-speech to generate audio assets for your website, then injects audio players in your HTML.
14 lines • 480 B
JavaScript
import { ERR_PREFIX } from './constants.js';
export const logError = (err) => {
console.error(`${ERR_PREFIX} error`);
console.error(err);
};
export const logErrors = (errors, outputPath) => {
if (errors.length > 0) {
console.error(`${ERR_PREFIX} encountered ${errors.length} errors while transforming ${outputPath}`);
errors.forEach((err, i) => {
console.log(`${i + 1}. ${err.message}`);
});
}
};
//# sourceMappingURL=log.js.map