roll-a-die
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "roll-a-die", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Simple 3D dice roll using CSS3 animation.", | ||
@@ -50,3 +50,6 @@ "main": "dist/roll-a-die.js", | ||
}, | ||
"homepage": "https://github.com/chukwumaijem/roll-a-die" | ||
"homepage": "https://github.com/chukwumaijem/roll-a-die", | ||
"files": [ | ||
"dist/roll-a-die.js" | ||
] | ||
} |
# Roll A Die | ||
[![npm package](https://img.shields.io/npm/v/roll-a-die.svg?style=flat-square)](https://www.npmjs.org/package/roll-a-die) | ||
[![npm package](https://img.shields.io/npm/v/roll-a-die.svg?style=flat-square)](https://www.npmjs.org/package/roll-a-die) [![Build Status](https://img.shields.io/travis/chukwumaijem/roll-a-die.svg?style=flat-square)](https://travis-ci.com/chukwumaijem/roll-a-die) | ||
[![Build Status](https://img.shields.io/travis/chukwumaijem/roll-a-die.svg?style=flat-square)](https://travis-ci.org/chukwumaijem/roll-a-die) | ||
Simple 3D dice roll animator by CSS3 Animation. | ||
## With bower | ||
install | ||
$ bower install roll-a-die | ||
Load styles in <head></head> | ||
## Vanilla JS | ||
Copy dist/roll-a-die.js into your library folder | ||
Load it into your HTML script | ||
``` | ||
<link rel="stylesheet" href="bower_components/roll-a-die/dist/roll-a-die.css"> | ||
<script type="text/javascript" src="path/to/roll-a-die.js"></script> | ||
``` | ||
Load script at end of <body></body>. | ||
Call the method with its options. | ||
``` | ||
<script type="text/javascript" src="bower_components/roll-a-die/dist/roll-a-die.js"></script> | ||
rollDice({ element, numberDice: 2, callback}); | ||
``` | ||
You can animate dice rolling by globaly defined function rollADie(). | ||
rollDice({ element, numberDice: 2, callback}); | ||
## With npm (and CommonJS builder) | ||
@@ -29,8 +21,3 @@ Install with npm. | ||
Copy `roll-a-die.css` into your public directory. | ||
Load styles in `<head></head>`. | ||
```<link rel="stylesheet" href="path/to/roll-a-die.css">``` | ||
You can animate dice rolling. | ||
Call method | ||
``` | ||
@@ -37,0 +24,0 @@ const rollDice = require('roll-a-die'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
3611
3
0
40