function prepare( pkgName, options ) {
	var dependencies;
	var binPath;
	var mpath;
	var deps;
	var keys;
	var opts;
	var dir;
	var err;
	var pkg;
	var val;
	var i;
	var j;

	if ( !isString( pkgName ) ) {
		throw new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', pkgName ) );
	}
	opts = copy( DEFAULTS );
	if ( arguments.length > 1 ) {
		err = validate( opts, options );
		if ( err ) {
			throw err;
		}
	}
	mpath = require.resolve( pkgName );
	pkg = resolveParentPath( 'package.json', {
		'dir': dirname( mpath )
	});
	dir = dirname( pkg );
	pkg = readJSON( pkg );

	// Replace forward slashes with dashes for package name to be valid for npm release:
	pkg.name = slashesToDashes( pkg.name );

	// Set package version to global version:
	pkg.version = PKG.version;

	keys = objectKeys( pkg.bin );
	dependencies = [];
	for ( i = 0; i < keys.length; i++ ) {
		binPath = join( dir, pkg.bin[ keys[ i ] ] );
		deps = pkgDeps( binPath, OPTS );
		for ( j = 0; j < deps.length; j++ ) {
			dependencies = dependencies.concat( deps[ j ].deps );
		}
	}
	deps = pkgDeps( mpath, OPTS );
	for ( i = 0; i < deps.length; i++ ) {
		dependencies = dependencies.concat( deps[ i ].deps );
	}
	unique( dependencies );

	// Sort the package names with external dependencies on top and `@stdlib` ones afterwards:
	dependencies.sort( pkgNameSorter );

	debug( 'Found '+dependencies.length+' unique dependencies to add: '+dependencies.join( ', ' ) );
	for ( i = 0; i < dependencies.length; i++ ) {
		val = dependencies[ i ];
		if ( startsWith( val, '@stdlib' ) ) {
			pkg.dependencies[ slashesToDashes( val ) ] = PKG.version;
		} else {
			pkg.dependencies[ val ] = PKG.dependencies[ val ];
		}
	}
	for ( i = 0; i < opts.devDependencies.length; i++ ) {
		val = opts.devDependencies[ i ];
		pkg.devDependencies[ val ] = PKG.devDependencies[ val ];
	}
	return pkg;
}
Prepares the `package.json` of a package for individual release.

@param {string} pkgName - package name
@param {Options} options - function options
@param {Array} [options.devDependencies] - development dependencies to be added
@throws {TypeError} first argument must be an object
@throws {TypeError} options argument must be an object
@throws {TypeError} must provide valid options
@returns {Object} updated `package.json` object

@example
var out = prepare( '@stdlib/plot/ctor' );
// returns {...}