File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ const os = require ( "os" ) ;
2+
3+ module . exports = async function * ( _timeout ) {
4+ const timeout = + _timeout || 1000 ;
5+ console . log ( { timeout} ) ;
6+
7+ while ( true ) {
8+ const next = new Promise ( res => setTimeout ( res , timeout ) ) ;
9+ yield {
10+ ts : Date . now ( ) ,
11+ mem : os . freemem ( )
12+ }
13+ await next ;
14+ }
15+ }
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " @scramjet/system-info" ,
3+ "version" : " 0.18.1" ,
4+ "description" : " Sequence that outputs a stream of system information from any server." ,
5+ "main" : " ./index.js" ,
6+ "author" :
" Scramjet <[email protected] >" ,
7+ "license" : " GPL-3.0" ,
8+ "repository" : {
9+ "type" : " git" ,
10+ "url" : " https://github.com/scramjetorg/transform-hub.git"
11+ }
12+ }
13+
You can’t perform that action at this time.
0 commit comments