Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via pnpm

vinyl-fs 4.0.0

Vinyl adapter for the file system.
Package summary
Share
0
issues
4
licenses
37
MIT
8
ISC
1
Apache-2.0
1
BSD-3-Clause
Package created
16 Jan 2014
Version published
25 Jun 2023
Maintainers
2
Total deps
47
Direct deps
14
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
37 Packages, Including:
@gulpjs/to-absolute-glob@4.0.0
base64-js@1.5.1
bl@5.1.0
buffer@6.0.3
clone-stats@1.0.0
clone@2.1.2
convert-source-map@2.0.0
fast-fifo@1.3.2
fs-mkdirp-stream@2.0.1
glob-stream@8.0.2
iconv-lite@0.6.3
is-extglob@2.1.1
is-glob@4.0.3
is-negated-glob@1.0.0
is-valid-glob@1.0.0
lead@4.0.0
normalize-path@3.0.0
now-and-later@3.0.0
picomatch@2.3.1
queue-tick@1.0.1
readable-stream@3.6.2
replace-ext@2.0.0
resolve-options@2.0.0
reusify@1.0.4
safe-buffer@5.2.1
safer-buffer@2.1.2
stream-composer@1.0.2
streamx@2.16.1
string_decoder@1.3.0
teex@1.0.1
to-through@3.0.0
util-deprecate@1.0.2
value-or-function@4.0.0
vinyl-contents@2.0.0
vinyl-fs@4.0.0
vinyl-sourcemap@2.0.0
vinyl@3.0.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
anymatch@3.1.3
fastq@1.17.1
glob-parent@6.0.2
graceful-fs@4.2.11
inherits@2.0.4
once@1.4.0
remove-trailing-separator@1.1.0
wrappy@1.0.2

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
bare-events@2.2.2

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
ieee754@1.2.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

14
All Dependencies CSV
β“˜ This is a list of vinyl-fs 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
fs-mkdirp-stream2.0.13.35 kBMIT
prod
glob-stream8.0.213.66 kBMIT
prod
graceful-fs4.2.119.57 kBISC
prod
iconv-lite0.6.3186.2 kBMIT
prod
is-valid-glob1.0.02.76 kBMIT
prod
lead4.0.02.3 kBMIT
prod
normalize-path3.0.03.48 kBMIT
prod
resolve-options2.0.03.14 kBMIT
prod
stream-composer1.0.23.47 kBMIT
prod
streamx2.16.148.1 kBMIT
prod
to-through3.0.03.03 kBMIT
prod
value-or-function4.0.03.26 kBMIT
prod
vinyl-sourcemap2.0.05.43 kBMIT
prod
vinyl3.0.07.15 kBMIT
prod

Visualizations

Frequently Asked Questions

What does vinyl-fs do?

Vinyl-fs is a powerful Vinyl adapter for the file system. Not only does it handle file metadata seamlessly, but it provides an effective means of accessing and interacting with these files across diverse sources, which can range from your computer's file system to cloud-based services like S3, Dropbox, etc. It achieves this by exposing methods such as src(globs), dest(folder) and symlink that respectively produce, consume, and create symbolic representation of Vinyl objects. More so, Vinyl-fs provides extra methods specific to the input/output medium of these file sources.

How do you use vinyl-fs?

To use Vinyl-fs, it's essential to install the required dependencies first, as shown below:

var map = require('map-stream');
var vfs = require('vinyl-fs');

Then, create a function, log, that logs the file path and also sets up a simple pipeline that reads JS files (excluding those in the vendor directory) and writes them to an output directory:

var log = function (file, cb) {
  console.log(file.path);
  cb(null, file);
};

vfs
  .src(['./js/**/*.js', '!./js/vendor/*.js'])
  .pipe(map(log))
  .pipe(vfs.dest('./output'));

To utilize the full potential of Vinyl-fs, there are other configurable options available such as UTF-8 BOM removal, buffering and reading file contents, handling file modification dates, managing globs, defining actions for symbolic links and more.

Where are the vinyl-fs docs?

For detailed documentation on using Vinyl-fs including its API details, options and more examples, refer to the official GitHub page here. Here you can find further insights into Glob-related options, instructions on how to handle symbolic links on Windows, information on error handling, as well as licensing details. The README on the GitHub repository is the most comprehensive resource for Vinyl-fs documentation.