Path: blob/master/node_modules/@bochilteam/scraper/lib/cjs/primbons/artinama.js
1126 views
"use strict";1var __importDefault = (this && this.__importDefault) || function (mod) {2return (mod && mod.__esModule) ? mod : { "default": mod };3};4Object.defineProperty(exports, "__esModule", { value: true });5const got_1 = __importDefault(require("got"));6async function artinama(nama) {7var _a, _b, _c;8const data = await (0, got_1.default)(`https://www.primbon.com/arti_nama.php?nama1=${nama}&proses=+Submit%21+`).text();9const results = (_c = (_b = (_a = data10.split('<h1>ARTI NAMA</h1><br>')[1]) === null || _a === void 0 ? void 0 : _a.split('<TABLE>')[0]) === null || _b === void 0 ? void 0 : _b.replace(/<(\/)?(h1|br|i|b)>/gim, '')) === null || _c === void 0 ? void 0 : _c.trim();11return results || '';12}13exports.default = artinama;14//# sourceMappingURL=artinama.js.map1516