html-content-processor
Version:
A professional library for processing, cleaning, filtering, and converting HTML content to Markdown. Features advanced customization options, presets, plugin support, fluent API, and TypeScript integration for reliable content extraction.
38 lines (37 loc) • 1.09 kB
JavaScript
;
/**
* Version management module
*
* This module exports the current version from package.json
* to ensure version consistency across the codebase.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = exports.getVersionInfo = exports.API_VERSION = exports.VERSION = void 0;
// Import package.json to get the version
// Use require for better compatibility with build tools
const packageJson = require('../package.json');
/**
* Current library version from package.json
*/
exports.VERSION = packageJson.version;
/**
* API version for compatibility tracking
*/
exports.API_VERSION = 'v1';
/**
* Get version information
*/
function getVersionInfo() {
return {
version: exports.VERSION,
apiVersion: exports.API_VERSION,
name: packageJson.name,
description: packageJson.description
};
}
exports.getVersionInfo = getVersionInfo;
/**
* Legacy version constant for backward compatibility
* @deprecated Use VERSION instead
*/
exports.version = exports.VERSION;