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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    2
  • 1.0.0
    0
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i ekst

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

3.06 kB

Total Files

5

Last publish

Collaborators

  • deepsweet
  • fosimus
  • psxcode