default-resolution

WebJar for default-resolution

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

default-resolution
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

default-resolution
WebJar for default-resolution
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/gulpjs/default-resolution

Download default-resolution

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/default-resolution/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>default-resolution</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/default-resolution/
implementation 'org.webjars.npm:default-resolution:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/default-resolution/
implementation ("org.webjars.npm:default-resolution:2.0.0")
'org.webjars.npm:default-resolution:jar:2.0.0'
<dependency org="org.webjars.npm" name="default-resolution" rev="2.0.0">
  <artifact name="default-resolution" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='default-resolution', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "default-resolution" % "2.0.0"
[org.webjars.npm/default-resolution "2.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

default-resolution

NPM version Downloads Build Status AppVeyor Build Status Coveralls Status Gitter chat

Get the default resolution time based on the current node version, optionally overridable.

Originally implemented by @dinoboff in gulpjs/undertaker#17.

Split out for standalone use.

Usage

var defaultResolution = require('default-resolution');

defaultResolution();
//-> 1000 (1 second) in node 0.10
//-> 1 (millisecond) in node 0.11+

// use a different value
defaultResolution(12);
//-> 12 always

API

defaultResolution([resolution])

Returns the default resolution, based on the node platform. See Default resolution table below for resolutions.

Optionally takes a resolution number to force override any platform resolutions.

Default resolutions

node version resolution
0.10 1s
0.11+ 1ms

More information at https://github.com/gulpjs/undertaker/pull/17#issuecomment-82374512

License

MIT

org.webjars.npm

gulp

A toolkit to automate & enhance your workflow

Versions

Version
2.0.0