vinyl-contents-tostring
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
5081
4
15
0