Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bears

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bears - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

26

cli.js
#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var heapdump = require('heapdump');
var typeOf = require('typeof');
const argv = require('yargs').argv;
fs.readFile(path.resolve(__dirname,'one.txt'),function(err,data){
var bears = data.toString().split('\n');
var bear = bears[Math.floor(Math.random()*bears.length)];
console.log(bear);
});
for(var i = 0; i< argv.numb; i++) {
console.log(i);
setTimeout(function() {generateHeapDumpAndStats();}, argv.inter);
//setInterval(generateHeapDumpAndStats, 2000);
}
console.log(typeOf(process.pid));
var pr = argv.portnum;
function generateHeapDumpAndStats(){
console.log("sending sigus2", pr);
process.kill(pr, 'SIGUSR2');
console.log("sent sigus2", pr);
}
{
"name": "bears",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "cli.js",
"bin" : {
"bearme" : "cli.js"
"bin": {
"bearme": "cli.js"
},

@@ -13,3 +13,8 @@ "scripts": {

"author": "",
"license": "ISC"
"license": "ISC",
"dependencies": {
"heapdump": "^0.3.9",
"typeof": "^1.0.0",
"yargs": "^8.0.2"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc