Socket
Socket
Sign inDemoInstall

buffer-v6-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buffer-v6-polyfill - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test.js

2

index.js
'use strict';
if (!(Number(process.version.match(/^v(\d+\.\d+)/)[1]) >= 6.0)) {
if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) >= 6.0) {
return;

@@ -5,0 +5,0 @@ }

{
"name": "buffer-v6-polyfill",
"version": "1.0.0",
"version": "1.0.1",
"description": "A polyfill for older versions of node.js for the node v6 Buffer",

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

@@ -5,6 +5,20 @@ # node-buffer-v6-shim

Usage
-----
```
'use strict';
require('buffer-v6-polyfill');
// all your codez ...
```
Show me the Code
----------------
```javascript
'use strict';
if (!(Number(process.version.match(/^v(\d+\.\d+)/)[1]) >= 6.0)) {
if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) >= 6.0) {
return;

@@ -11,0 +25,0 @@ }

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