DefinitelyTyped/types/replace-ext/replace-ext-tests.ts
2017-03-24 14:27:52 -07:00

6 lines
135 B
TypeScript

import replaceExt = require('replace-ext');
var path: string = '/some/dir/file.js';
var npath: string = replaceExt(path, '.coffee');