Gathering detailed insights and metrics for @bijection/smoke
Gathering detailed insights and metrics for @bijection/smoke
Gathering detailed insights and metrics for @bijection/smoke
Gathering detailed insights and metrics for @bijection/smoke
npm install @bijection/smoke
Typescript
Module System
Node Version
NPM Version
69.3
Supply Chain
98.7
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (68.74%)
HTML (31.26%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
280 Stars
31 Commits
80 Forks
4 Watchers
2 Branches
5 Contributors
Updated on Jul 07, 2025
Latest Version
1.0.2
Package Id
@bijection/smoke@1.0.2
Unpacked Size
10.62 kB
Size
4.22 kB
File Count
4
NPM Version
4.5.0
Node Version
11.10.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
Copy the smoke.js file into your project and use it with a script tag:
1<script src="smoke.js"></script>
That defines a SmokeMachine
global that you can use to make smoke (see examples below).
You can also use yarn or npm:
yarn add @bijection/smoke
npm add @bijection/smoke
Thern you can import or require smoke.js like this:
1import SmokeMachine from '@bijection/smoke'
1var SmokeMachine = require('@bijection/smoke')
1var ctx = canvas.getContext('2d') 2 3var party = SmokeMachine(ctx) 4party.addSmoke(500,500) 5party.start()
1<canvas id="canvas"></canvas> 2<script src="smoke.js"></script> 3<script> 4 var canvas = document.getElementById('canvas') 5 var ctx = canvas.getContext('2d') 6 canvas.width = 1000 7 canvas.height = 1000 8 9 var party = SmokeMachine(ctx, [54, 16.8, 18.2]) 10 11 party.start() // start animating 12 13 party.addSmoke(500,500,10) // wow we made smoke 14 15 setTimeout(function(){ 16 17 party.stop() // stop animating 18 19 party.addSmoke(600,500,100) 20 party.addSmoke(500,600,20) 21 22 for(var i=0;i<10;i++){ 23 party.step(10) // pretend 10 ms pass and rerender 24 } 25 26 setTimeout(function(){ 27 party.start() 28 },1000) 29 30 },1000) 31</script>
Returns a smoke machine that makes smoke.
1var party = SmokeMachine(context, [1,5,253])
Start Animating!!
Stop animating :(
redaws the smoke as if milliseconds
milliseconds have passed
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 5/25 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More