Skip to content

Instantly share code, notes, and snippets.

View uratmangun's full-sized avatar
⛰️
بِسْمِ الله

uratmangun uratmangun

⛰️
بِسْمِ الله
View GitHub Profile
#!/usr/bin/env node
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
import { spawn } from 'child_process';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const scriptPath = join(__dirname, '..', 'scripts', 'scrape-or-search.mjs');
{
"name": "@uratmangun/scraper-tool",
"version": "1.0.0",
"description": "A CLI tool for web scraping and Google search",
"type": "module",
"bin": {
"@uratmangun/scraper-tool": "./bin/cli.js"
},
"files": [
"bin",
if you don't know the answer, try to search it on the internet. You can do so by running the following command:
```
npx @uratmangun/scraper-tool search "<query>"
```
Let's say the query is "how to install frog.fm".
```
npx @uratmangun/scraper-tool search "how to install frog.fm"