karma-typescript-agile-preprocessor
Version:
Leverage the power of gulp-typescript for a simple yet powerful Karma preprocessor.
51 lines (32 loc) • 1.63 kB
Markdown
<p align="center">
<a href="http://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
Replaces a file extension with another one.
```js
var replaceExt = require('replace-ext');
var path = '/some/dir/file.js';
var newPath = replaceExt(path, '.coffee');
console.log(newPath); // /some/dir/file.coffee
```
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.
MIT
[]: http://img.shields.io/npm/dm/replace-ext.svg
[]: https://www.npmjs.com/package/replace-ext
[]: http://img.shields.io/npm/v/replace-ext.svg
[]: https://travis-ci.org/gulpjs/replace-ext
[]: http://img.shields.io/travis/gulpjs/replace-ext.svg?label=travis-ci
[]: https://ci.appveyor.com/project/gulpjs/replace-ext
[]: https://img.shields.io/appveyor/ci/gulpjs/replace-ext.svg?label=appveyor
[]: https://coveralls.io/r/gulpjs/replace-ext
[]: http://img.shields.io/coveralls/gulpjs/replace-ext/master.svg
[]: https://gitter.im/gulpjs/gulp
[]: https://badges.gitter.im/gulpjs/gulp.svg