Socket
Socket
Sign inDemoInstall

vinyl-contents-tostring

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinyl-contents-tostring - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

lib/index.js

2

package.json
{
"name": "vinyl-contents-tostring",
"version": "2.0.0",
"version": "2.0.1",
"description": "Convert vinyl file content to string",

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

@@ -23,12 +23,12 @@ # vinyl-contents-tostring

const map = require('map-stream');
const asCallback = require('ascallback');
const vinylToString = require('vinyl-contents-tostring');
vfs.src(['./package.json'])
.pipe(map((file, cb) => (
vinylToString(file)
.then(contents => {
console.log(contents);
})
.asCallback(cb)
)));
.pipe(map(
(file, cb) => asCallback(
vinylToString(file).then(contents => console.log(contents)),
cb,
),
));
```

@@ -35,0 +35,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