@jayree/changelog
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

@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));

Dependencies (6)

Dev Dependencies (37)

Package Sidebar

Install

npm i @jayree/changelog

Weekly Downloads

2,121

Version

1.2.1

License

BSD-3-Clause

Unpacked Size

78.6 kB

Total Files

10

Last publish

Collaborators

  • jayree