Sha256: dfcbf58e45314deab144410684c1aaec84210b2b62b8d3646c3b2412d087e629

Contents?: true

Size: 261 Bytes

Versions: 10

Compression:

Stored size: 261 Bytes

Contents

import { extname } from 'path';
import { AddExtension } from './pluginutils';

const addExtension: AddExtension = function addExtension(filename, ext = '.js') {
	if (!extname(filename)) filename += ext;
	return filename;
};

export { addExtension as default };

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
condenser-0.3 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.2 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.1 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.0.12 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.0.11 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.0.10 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.0.9 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.0.8 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.0.7 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts
condenser-0.0.5 lib/condenser/processors/node_modules/rollup-pluginutils/src/addExtension.ts