How to use the pkg.options function in pkg

To help you get started, we’ve selected a few pkg 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 louis-tru / ngui / node_modules / ngui / util.js View on Github external
// @func temp()
	// @func resources()
	// @func fallbackPath()
	// @func cwd()
	// @func chdir()
	// @func log()

	/**
	 * @current timezone
	 */
	timezone: currentTimezone,

	/**
	 * @has dev mode
	 */
	dev: !!_pkg.options.dev,
	
	/**
	 * @start argv options
	 */
	options: _pkg.options,
	
	/**
	 * @func resolve(...args)
	 */
	resolve: _pkg.resolve,

	/**
	 * @func isAbsolute(path)
	 */
	isAbsolute: _pkg.isAbsolute,
github louis-tru / ngui / node_modules / ngui / util.js View on Github external
// @func log()

	/**
	 * @current timezone
	 */
	timezone: currentTimezone,

	/**
	 * @has dev mode
	 */
	dev: !!_pkg.options.dev,
	
	/**
	 * @start argv options
	 */
	options: _pkg.options,
	
	/**
	 * @func resolve(...args)
	 */
	resolve: _pkg.resolve,

	/**
	 * @func isAbsolute(path)
	 */
	isAbsolute: _pkg.isAbsolute,
	
	/**
	 * Empty function
	 */
	noop: function() { },