replace-ext

WebJar for replace-ext

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

replace-ext
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

replace-ext
WebJar for replace-ext
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/gulpjs/replace-ext

Download replace-ext

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/replace-ext/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>replace-ext</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/replace-ext/
implementation 'org.webjars.npm:replace-ext:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/replace-ext/
implementation ("org.webjars.npm:replace-ext:1.0.1")
'org.webjars.npm:replace-ext:jar:1.0.1'
<dependency org="org.webjars.npm" name="replace-ext" rev="1.0.1">
  <artifact name="replace-ext" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='replace-ext', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "replace-ext" % "1.0.1"
[org.webjars.npm/replace-ext "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

replace-ext

NPM version Downloads Build Status Coveralls Status

Replaces a file extension with another one.

Usage

var replaceExt = require('replace-ext');

var path = '/some/dir/file.js';
var newPath = replaceExt(path, '.coffee');

console.log(newPath); // /some/dir/file.coffee

API

replaceExt(path, extension)

Replaces the extension from path with extension and returns the updated path string.

Does not replace the extension if path is not a string or is empty.

replace-ext for enterprise

Available as part of the Tidelift Subscription.

The maintainers of replace-ext and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

License

MIT

org.webjars.npm

gulp

A toolkit to automate & enhance your workflow

Versions

Version
1.0.1
1.0.0
0.0.1