UNPKG

article-summarizer-jp

Version:

CLI tool for summarizing web articles in Japanese using Anthropic Claude API. Fetches content from URLs and generates both 3-line summaries and full translations in polite Japanese.

24 lines 733 B
import inquirer from 'inquirer'; export async function getUrlFromUser() { const answers = await inquirer.prompt([ { type: 'input', name: 'url', message: '要約したい記事のURLを入力してください:', validate: (input) => { if (!input || input.trim().length === 0) { return 'URLは必須です'; } try { new URL(input); return true; } catch { return '有効なURLを入力してください'; } } } ]); return answers.url; } //# sourceMappingURL=input.js.map