bin/cli.js
function getName(str) {
	var name = path.basename(str);
	if (name.lastIndexOf('.') === -1) {
		name += '.json';
	}
	return name;
}
function getName(str) {
	var name = path.basename(str);
	if (name.lastIndexOf('.') === -1) {
		name += '.json';
	}
	return name;
}
function getName ( str ) { var name = path . basename ( str ) ; if ( name . lastIndexOf ( '.' ) === - 1 ) { name += '.json' ; } return name ; }
Get the name of the JSON resource so the schema
matches the source. The .json extension is added
if it's missing from the filename.

@param {String} str File name
@return {String} The name of the file only.
Get the name of the JSON resource so the schema matches the source . The . json extension is added if it s missing from the filename .