UNPKG

keep-a-changelog

Version:

Node package to parse and generate changelogs following the [keepachangelog](https://keepachangelog.com/) format.

74 lines (73 loc) 2.97 kB
"use strict"; // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // Copyright the Browserify authors. MIT License. // Ported mostly from https://github.com/browserify/path-browserify/ // This module is browser compatible. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); /** * Utilities for working with OS-specific file paths. * * Functions from this module will automatically switch to support the path style * of the current OS, either `windows` for Microsoft Windows, or `posix` for * every other operating system, eg. Linux, MacOS, BSD etc. * * To use functions for a specific path style regardless of the current OS * import the modules from the platform sub directory instead. * * Example, for POSIX: * * ```ts * import { fromFileUrl } from "@std/path/posix/from-file-url"; * import { assertEquals } from "@std/assert"; * * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo"); * ``` * * Or, for Windows: * * ```ts * import { fromFileUrl } from "@std/path/windows/from-file-url"; * import { assertEquals } from "@std/assert"; * * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo"); * ``` * * Functions for working with URLs can be found in * {@link ./doc/posix/~ | @std/path/posix}. * * @module */ __exportStar(require("./basename.js"), exports); __exportStar(require("./constants.js"), exports); __exportStar(require("./dirname.js"), exports); __exportStar(require("./extname.js"), exports); __exportStar(require("./format.js"), exports); __exportStar(require("./from_file_url.js"), exports); __exportStar(require("./is_absolute.js"), exports); __exportStar(require("./join.js"), exports); __exportStar(require("./normalize.js"), exports); __exportStar(require("./parse.js"), exports); __exportStar(require("./relative.js"), exports); __exportStar(require("./resolve.js"), exports); __exportStar(require("./to_file_url.js"), exports); __exportStar(require("./to_namespaced_path.js"), exports); __exportStar(require("./common.js"), exports); __exportStar(require("./types.js"), exports); __exportStar(require("./glob_to_regexp.js"), exports); __exportStar(require("./is_glob.js"), exports); __exportStar(require("./join_globs.js"), exports); __exportStar(require("./normalize_glob.js"), exports);