1.1.11 • Published 1 month ago

@jayree/changelog v1.1.11

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 month ago

@jayree/changelog

Parse a CHANGELOG.md file of a package and return the most recent entry.

Install

npm install @jayree/changelog

Usage

import { join, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import printChangeLog from '@jayree/changelog';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const pathToChangeLog = join(__dirname, '..', '..');
const cacheDir = this.config.cacheDir;

console.log(printChangeLog(cacheDir, pathToChangeLog));