can-promise

WebJar for can-promise

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

can-promise
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

can-promise
WebJar for can-promise
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/vigreco/can-promise

Download can-promise

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : window-or-global jar [1.0.1,2)

Project Modules

There are no modules declared in this project.

can-promise

Tiny module for checking if Promise is globally available.

Installation

npm i --save can-promise

Example

const canPromise = require('can-promise')
// or
import canPromise from 'can-promise'

// on Node < 0.11.13
console.log(canPromise()) // false

// on Node >= 0.11.13
console.log(canPromise()) // true

// on IE9
console.log(canPromise()) // false

// on Chrome, Firefox
console.log(canPromise()) // true

Versions

Version
0.0.1