How to use the editorconfig/lib/ini.parseString function in editorconfig

To help you get started, we’ve selected a few editorconfig 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 gucong3000 / FELS / public / js / config-editorconfig.js View on Github external
function parseString(config) {
	config = ini.parseString(config.toString()).filter(block => block[0] === "*").map(block => block[1]);
	config.unshift({});
	config.unshift(defaultConfig);
	return Object.assign.apply(Object, config);
}