mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-10 19:54:57 +02:00
23 lines
793 B
JavaScript
23 lines
793 B
JavaScript
"use strict";
|
|
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.createSlugger = void 0;
|
|
const tslib_1 = require("tslib");
|
|
const github_slugger_1 = tslib_1.__importDefault(require("github-slugger"));
|
|
/**
|
|
* A thin wrapper around github-slugger. This is a factory function that returns
|
|
* a stateful Slugger object.
|
|
*/
|
|
function createSlugger() {
|
|
const githubSlugger = new github_slugger_1.default();
|
|
return {
|
|
slug: (value, options) => githubSlugger.slug(value, options?.maintainCase),
|
|
};
|
|
}
|
|
exports.createSlugger = createSlugger;
|
|
//# sourceMappingURL=slugger.js.map
|