How to use the mime-types.add function in mime-types

To help you get started, we’ve selected a few mime-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DST-Tools / DSTEd / Source / Classes / Software.js View on Github external
this.init = function init() {
		if(typeof(mime.add) != 'undefined') {
			mime.add ('valve/data-file', ['vdf']);
		}
		
		var directory = path.dirname(App.getPath('exe'));
		
		if(new RegExp('node_modules', 'gi').test(directory)) {
			directory = App.getAppPath();
		}
		
		_config = directory + path.sep + 'config.json';
		Logger.info('Set Configuration-Path: ' + _config);
	};