Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 1, 2024 via pnpm

vinyl 3.0.0

Virtual file format.
Package summary
Share
0
issues
3
licenses
8
MIT
3
Apache-2.0
1
ISC
Package created
21 Dec 2013
Version published
28 Sep 2022
Maintainers
2
Total deps
12
Direct deps
5
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
8 Packages, Including:
clone-stats@1.0.0
clone@2.1.2
fast-fifo@1.3.2
queue-tick@1.0.1
replace-ext@2.0.0
streamx@2.18.0
teex@1.0.1
vinyl@3.0.0

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
3 Packages, Including:
b4a@1.6.6
bare-events@2.3.1
text-decoder@1.1.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
1 Packages, Including:
remove-trailing-separator@1.1.0
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

5
All Dependencies CSV
ⓘ This is a list of vinyl 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
clone-stats1.0.01.95 kBMIT
prod
clone2.1.25.68 kBMIT
prod
remove-trailing-separator1.1.02.05 kBISC
prod
replace-ext2.0.02.4 kBMIT
prod
teex1.0.12.1 kBMIT
prod

Visualizations

Frequently Asked Questions

What does vinyl do?

Vinyl is a very flexible and simple metadata object, commonly used in Node.js development, that describes a file. Just like a physical file, the virtual Vinyl file includes important attributes such as path and contents. Nonetheless, a Vinyl file is not limited to representing a local file on your system. It can effectively describe files on various file sources, including external services like Dropbox or S3, FTP servers, and more. This feature introduces a standardized file system object format across a multitude of workflows and file sources, enhancing interoperability and efficiency.

How do you use vinyl?

To start using Vinyl, make sure to install it first via npm by running npm install --save vinyl in your project directory. Here is a basic example of how to use Vinyl:

// Require the vinyl package
var Vinyl = require('vinyl');

// Create a new Vinyl file
var jsFile = new Vinyl({
  cwd: '/',
  base: '/test/',
  path: '/test/file.js',
  contents: Buffer.from('var x = 123'),
});

// jsFile now contains your file with path data and contents

In this example, we imported the vinyl package and created a new Vinyl file instance. The cwd, base, path, and contents properties can be used to customize the Vinyl file's details. It's worth noting that the contents variable accepts a Buffer, a Stream, or null.

Where are the vinyl docs?

For detailed documentation on Vinyl and it's full API, refer to the official Vinyl GitHub repository. The documentation contains extended information on various Vinyl options, including different instance methods and properties, file handlers management, and even extending Vinyl’s base functionality. The README section also provides other specific usage examples, and explains how to interact and use Vinyl’s virtual file format in more complex scenarios. Remember to always keep your local Vinyl package updated to the latest version to make sure you are utilizing all the benefits the tool provides.