Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pagic/src/utils/filepath.ts>replaceExt

A static site generator powered by Deno + React
Go to Latest
function replaceExt
import { replaceExt } from "https://deno.land/x/pagic@v1.5.1/src/utils/filepath.ts";

input: foo/bar.html replacement: _content.js output: foo/bar_content.js

Parameters

input: string
replacement: string