index.js
function stringify(input) {
				if (typeof input === 'string') {
					return input;
				}

				if (!input) {
					return '';
				}

				output = input.m;

				var variations = [];
				for (var key in input) {
					if (input.hasOwnProperty(key) && key !== 'm') {
						// Only show variations that are not the primary one, since
						// primary variations are chosen by default
						if (input[key] > 0) {
							if (verbose) {
								variations.push(', variation ' + input[key] + ' at move ' + key);
							} else {
								variations.push('-' + key + ':' + input[key]);
							}
						}
					}
				}

				output += variations.join('');
				return output;
			}
function stringify(input) {
				if (typeof input === 'string') {
					return input;
				}

				if (!input) {
					return '';
				}

				output = input.m;

				var variations = [];
				for (var key in input) {
					if (input.hasOwnProperty(key) && key !== 'm') {
						// Only show variations that are not the primary one, since
						// primary variations are chosen by default
						if (input[key] > 0) {
							if (verbose) {
								variations.push(', variation ' + input[key] + ' at move ' + key);
							} else {
								variations.push('-' + key + ':' + input[key]);
							}
						}
					}
				}

				output += variations.join('');
				return output;
			}
function stringify ( input ) { if ( typeof input === 'string' ) { return input ; } if ( ! input ) { return '' ; } output = input . m ; var variations = [ ] ; for ( var key in input ) { if ( input . hasOwnProperty ( key ) && key !== 'm' ) { // Only show variations that are not the primary one, since // primary variations are chosen by default if ( input [ key ] > 0 ) { if ( verbose ) { variations . push ( ', variation ' + input [ key ] + ' at move ' + key ) ; } else { variations . push ( '-' + key + ':' + input [ key ] ) ; } } } } output += variations . join ( '' ) ; return output ; }
Turn a path object into a string.
Turn a path object into a string .