ekst
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

ekst npm

Append, prepend, replace or remove basename extensions.

Install

$ yarn add ekst

Usage

import { appendExt, prependExt, replaceExt, removeExt } from 'ekst'

appendExt('file.a.b', '.c') // file.a.b.c
prependExt('file.b.c', '.a') // file.a.b.c
replaceExt('file.a.d.d.c', '.d', '.b') // file.a.b.b.c
removeExt('file.a.d.b.d.c.d.d', '.d') // file.a.b.c

Package Sidebar

Install

npm i ekst

Weekly Downloads

4

Version

2.0.0

License

MIT

Unpacked Size

3.06 kB

Total Files

5

Last publish

Collaborators

  • deepsweet
  • fosimus
  • psxcode