New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

swear-demo-react

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swear-demo-react - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

24

bin/swear-demo-react.js
#! /usr/bin/env node
process.stdin.resume(); //so the program will not close instantly
const shell = require('shelljs')
shell.exec('git clone https://github.com/soundsnick/swear-js swear-tmp-npx')
shell.exec('git clone https://github.com/soundsnick/swear-js swear-tmp-demo-react-npx')
shell.cd('./swear-tmp-npx/packages/demo-react')
shell.exec('npm i')
shell.exec('npm run start')
function exitHandler() {
console.log('Cleaning up...');
shell.cd('../')
shell.exec('rm -rf swear-tmp-npx')
process.exit()
}
//do something when app is closing
process.on('exit', exitHandler);
//catches ctrl+c event
process.on('SIGINT', exitHandler);
// catches "kill pid" (for example: nodemon restart)
process.on('SIGUSR1', exitHandler);
process.on('SIGUSR2', exitHandler);
//catches uncaught exceptions
process.on('uncaughtException', exitHandler);

4

package.json
{
"name": "swear-demo-react",
"version": "1.0.3",
"version": "1.0.4",
"license": "ISC",

@@ -11,3 +11,3 @@ "dependencies": {

},
"gitHead": "7f174e602a96a5d347f54c06c04ee8aba967a33f"
"gitHead": "5392cf7cc3053aac15992820b92a622195eb7a85"
}
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