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 Apr 17, 2024 via pnpm

webpack-sources 1.4.3

Source code handling classes for webpack
Package summary
Share
0
issues
2
licenses
2
MIT
1
BSD-3-Clause
Package created
3 Jan 2016
Version published
5 Aug 2019
Maintainers
2
Total deps
3
Direct deps
2
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
2 Packages, Including:
source-list-map@2.0.1
webpack-sources@1.4.3

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:
source-map@0.6.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

2
All Dependencies CSV
β“˜ This is a list of webpack-sources 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
source-list-map2.0.16.98 kBMIT
prod
source-map0.6.1194.96 kBBSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does webpack-sources do?

Webpack-sources is a comprehensive library incorporated with multiple classes that represent a 'Source'. The key purpose of webpack-sources is to handle source code in the webpack. It allows the source code to be requested for its content, size, source map, and hash. An interesting feature of webpack-sources is that it assumes all its methods are expensive as they may need to do computations.

How do you use webpack-sources?

Using webpack-sources involves utilizing its collection of classes. Each class has its specific function. For instance, the 'source' function returns the represented source code as a String or Buffer.

Let's take the 'RawSource' class as an example. Here's how you would use it in your JavaScript code:

const RawSource = require('webpack-sources').RawSource;

// your source code here
let sourceCode = "console.log('Hello, World!')";

let rawSourceInstance = new RawSource(sourceCode);

rawSourceInstance.size();  // returns the size of the source code
rawSourceInstance.source();  // returns the source code

Note: The 'RawSource' class is utilized to represent source code that does not have a SourceMap.

Where are the webpack-sources docs?

The official documentation for webpack-sources is currently not separately available but can be understood through the README documentation available at the official GitHub page.