Socket
Socket
Sign inDemoInstall

if-npm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

if-npm - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "if-npm",
"version": "0.0.1",
"version": "0.0.2",
"description": "Check if your code is running as an npm or yarn project",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,4 +21,4 @@ <p align="center"><a href="https://nodei.co/npm/if-npm/"><img src="https://nodei.co/npm/if-npm.png"></a></p>

```
$ node main.js
```sh
$ node kar.js
# ┌─────────────┬────────┐

@@ -31,3 +31,3 @@ # │ (index) │ Values │

# └─────────────┴────────┘
$ npm run main
$ npm run kar
# ┌─────────────┬────────┐

@@ -40,3 +40,3 @@ # │ (index) │ Values │

# └─────────────┴────────┘
$ yarn run main
$ yarn run kar
# ┌─────────────┬────────┐

@@ -43,0 +43,0 @@ # │ (index) │ Values │

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