✨ Features: - App iOS completa para leer manga sin publicidad - Scraper con WKWebView para manhwaweb.com - Sistema de descargas offline - Lector con zoom y navegación - Favoritos y progreso de lectura - Compatible con iOS 15+ y Sideloadly/3uTools 📦 Contenido: - Backend Node.js con Puppeteer (opcional) - App iOS con SwiftUI - Scraper de capítulos e imágenes - Sistema de almacenamiento local - Testing completo - Documentación exhaustiva 🧪 Prueba: Capítulo 789 de One Piece descargado exitosamente - 21 páginas descargadas - 4.68 MB total - URLs verificadas y funcionales 🎉 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
666 B
JavaScript
28 lines
666 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
/**
|
|
* Returns the number (integer) of DNS domain levels (number of dots) in the
|
|
* hostname.
|
|
*
|
|
* Examples:
|
|
*
|
|
* ``` js
|
|
* dnsDomainLevels("www")
|
|
* // returns 0.
|
|
* dnsDomainLevels("www.netscape.com")
|
|
* // returns 2.
|
|
* ```
|
|
*
|
|
* @param {String} host is the hostname from the URL.
|
|
* @return {Number} number of domain levels
|
|
*/
|
|
function dnsDomainLevels(host) {
|
|
const match = String(host).match(/\./g);
|
|
let levels = 0;
|
|
if (match) {
|
|
levels = match.length;
|
|
}
|
|
return levels;
|
|
}
|
|
exports.default = dnsDomainLevels;
|
|
//# sourceMappingURL=dnsDomainLevels.js.map
|