JSPM

  • Created
  • Published
  • Downloads 1504
  • Score
    100M100P100Q116824F
  • License BSD-3-Clause

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

Package Exports

  • @jayree/changelog
  • @jayree/changelog/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jayree/changelog) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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