Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102852127
README.md
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 24, 20:52
Size
1 KB
Mime Type
text/html
Expires
Wed, Feb 26, 20:52 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
24327536
Attached To
R8244 Eawag_Swing_Weight_Elicitation
README.md
View Options
#
replace
-
ext
[![
NPM
version
][
npm
-
image
]][
npm
-
url
]
[![
Build
Status
][
travis
-
image
]][
travis
-
url
]
[![
Coveralls
Status
][
coveralls
-
image
]][
coveralls
-
url
]
[![
Dependency
Status
][
david
-
image
]][
david
-
url
]
##
Information
<
table
>
<
tr
>
<
td
>
Package
</
td
><
td
>
replace
-
ext
</
td
>
</
tr
>
<
tr
>
<
td
>
Description
</
td
>
<
td
>
Replaces
a
file
extension
with
another
one
</
td
>
</
tr
>
<
tr
>
<
td
>
Node
Version
</
td
>
<
td
>>=
0.4
</
td
>
</
tr
>
</
table
>
##
Usage
```
javascript
var
replaceExt
=
require
(
'
replace
-
ext
'
);
var
path
=
'
/
some
/
dir
/
file
.
js
'
;
var
npath
=
replaceExt
(
path
,
'
.
coffee
'
);
console
.
log
(
npath
);
// /some/dir/file.coffee
```
[
npm
-
url
]:
https
:
//npmjs.org/package/replace-ext
[
npm
-
image
]:
https
:
//badge.fury.io/js/replace-ext.png
[
travis
-
url
]:
https
:
//travis-ci.org/wearefractal/replace-ext
[
travis
-
image
]:
https
:
//travis-ci.org/wearefractal/replace-ext.png?branch=master
[
coveralls
-
url
]:
https
:
//coveralls.io/r/wearefractal/replace-ext
[
coveralls
-
image
]:
https
:
//coveralls.io/repos/wearefractal/replace-ext/badge.png
[
depstat
-
url
]:
https
:
//david-dm.org/wearefractal/replace-ext
[
depstat
-
image
]:
https
:
//david-dm.org/wearefractal/replace-ext.png
[
david
-
url
]:
https
:
//david-dm.org/wearefractal/replace-ext
[
david
-
image
]:
https
:
//david-dm.org/wearefractal/replace-ext.png?theme=shields.io
Event Timeline
Log In to Comment