savethis
Version:
CLI tool to download and organize Gmail attachments with AI document summarization
18 lines (15 loc) • 499 B
JavaScript
// Register warning handler before any imports
process.on('warning', warning => {
if (warning.name === 'DeprecationWarning' && warning.message.includes('punycode')) {
return // Silently ignore
}
console.warn(warning) // Log other warnings
})
// Use a slight delay to ensure warning handler is registered
setTimeout(() => {
import('../dist/index.js').catch(e => {
console.error('Error starting savethis:', e.message)
process.exit(1)
})
}, 0)