How to use the pkg.isAbsolute 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 / url.js View on Github external
* @func cwd()
   * @ret {String}
   */
  cwd: util.cwd,

  /**
   * @func chdir(path)
   * @arg path {String}
   * @ret {bool}
   */
  chdir: util.chdir,

  /** 
   * @func isAbsolute() is absolute path
   */
  isAbsolute: pkg.isAbsolute, // func
  
  /**
   * @func resolve() resolve path 
   */
  resolve: pkg.resolve, // func

  /**
   * full filename
   */
  filename: function (path) {
    return get_path(path).filename;
  },

  /**
   * full path
   */
github louis-tru / ngui / node_modules / ngui / util.js View on Github external
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() { },

	/**
	 * @func isAsync(func)
	 */
	isAsync: function(func) {
		return is_async(func);
	},

	/**
	 * @func nextTick(cb)
	 */