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

url-loader 2.0.1

A loader for webpack which transforms files into base64 URIs
Package summary
Share
12
issues
8
high severity
vulnerability
1
meta
7
4
moderate severity
meta
4
8
licenses
274
MIT
36
ISC
7
BSD-2-Clause
10
other licenses
BSD-3-Clause
6
Apache-2.0
1
(MIT OR Apache-2.0)
1
(MIT AND Zlib)
1
+ 1 more
Package created
13 May 2012
Version published
25 Jun 2019
Maintainers
5
Total deps
327
Direct deps
4
License
MIT

Issues

12

8 high severity issues

high
Recommendation: Upgrade to version 5.1.2 or later
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
Collapse
Expand

4 moderate severity issues

moderate
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
Collapse
Expand

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
274 Packages, Including:
@webassemblyjs/ast@1.9.0
@webassemblyjs/floating-point-hex-parser@1.9.0
@webassemblyjs/helper-api-error@1.9.0
@webassemblyjs/helper-buffer@1.9.0
@webassemblyjs/helper-code-frame@1.9.0
@webassemblyjs/helper-module-context@1.9.0
@webassemblyjs/helper-wasm-bytecode@1.9.0
@webassemblyjs/helper-wasm-section@1.9.0
@webassemblyjs/ieee754@1.9.0
@webassemblyjs/leb128@1.9.0
@webassemblyjs/utf8@1.9.0
@webassemblyjs/wasm-edit@1.9.0
@webassemblyjs/wasm-gen@1.9.0
@webassemblyjs/wasm-opt@1.9.0
@webassemblyjs/wasm-parser@1.9.0
@webassemblyjs/wast-parser@1.9.0
@webassemblyjs/wast-printer@1.9.0
acorn@6.4.2
acorn@8.11.3
ajv-errors@1.0.1
ajv-keywords@3.5.2
ajv@6.12.6
arr-diff@4.0.0
arr-flatten@1.1.0
arr-union@3.1.0
array-unique@0.3.2
asn1.js@4.10.1
assert@1.5.1
assign-symbols@1.0.0
async-each@1.0.6
balanced-match@1.0.2
base64-js@1.5.1
base@0.11.2
big.js@5.2.2
binary-extensions@1.13.1
binary-extensions@2.3.0
bindings@1.5.0
bluebird@3.7.2
bn.js@4.12.0
bn.js@5.2.1
brace-expansion@1.1.11
braces@2.3.2
braces@3.0.2
brorand@1.1.0
browserify-aes@1.2.0
browserify-cipher@1.0.1
browserify-des@1.0.2
browserify-rsa@4.1.0
browserify-zlib@0.2.0
buffer-from@1.1.2

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
36 Packages, Including:
@webassemblyjs/helper-fsm@1.9.0
anymatch@2.0.0
anymatch@3.1.3
aproba@1.2.0
browserify-sign@4.2.3
cacache@12.0.4
chownr@1.1.4
copy-concurrently@1.0.5
figgy-pudding@3.5.2
fs-write-stream-atomic@1.0.10
fs.realpath@1.0.0
glob-parent@3.1.0
glob-parent@5.1.2
glob@7.2.3
graceful-fs@4.2.11
infer-owner@1.0.4
inflight@1.0.6
inherits@2.0.3
inherits@2.0.4
lru-cache@5.1.1
minimalistic-assert@1.0.1
minimatch@3.1.2
move-concurrently@1.0.1
once@1.4.0
parse-asn1@5.1.7
promise-inflight@1.0.1
remove-trailing-separator@1.1.0
rimraf@2.7.1
run-queue@1.0.3
semver@5.7.2
ssri@6.0.2
unique-filename@1.1.1
unique-slug@2.0.2
wrappy@1.0.2
y18n@4.0.3
yallist@3.1.1

BSD 2-Clause "Simplified" 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
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
eslint-scope@4.0.3
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
mississippi@3.0.0
terser@4.8.1
uri-js@4.4.1

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
6 Packages, Including:
@xtuc/ieee754@1.2.0
ieee754@1.2.1
qs@6.12.1
serialize-javascript@4.0.0
source-map@0.5.7
source-map@0.6.1

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:
@xtuc/long@4.2.2

(MIT OR Apache-2.0)

Permissive
1 Packages, Including:
atob@2.1.2

(MIT AND Zlib)

Permissive
1 Packages, Including:
pako@1.0.11

(MIT AND BSD-3-Clause)

Permissive
1 Packages, Including:
sha.js@2.4.11
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

4
All Dependencies CSV
β“˜ This is a list of url-loader 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
loader-utils1.4.28.18 kBMIT
prod
mime2.6.018.29 kBMIT
prod
schema-utils1.0.03.76 kBMIT
prod
webpack4.47.0304.77 kBMIT
prod peer
8
4

Visualizations

Frequently Asked Questions

What does url-loader do?

The url-loader is an invaluable webpack tool that augments your web development process by transforming files into base64 URIs (Uniform Resource Identifiers). It works synergistically with the file-loader, with the notable feature of being capable of returning a Data URL if the file size is lesser than a pre-set byte limit. This is exceptionally useful when dealing with smaller files as it obviates the need for separate HTTP requests. The binary data these files represent is directly embedded in the document, essentially becoming a part of the web page, and boosting load times.

How do you use url-loader?

Using url-loader involves several steps starting with its installation. You can simply use the command $ npm install url-loader --save-dev in your terminal to add url-loader to your development dependencies. Once installed, you use it in your webpack.config.js file by assigning url-loader as the loader in the module rules. You can then set options such as limit, which sets the maximum file size that will be transformed into a base64 URI. If a file exceeds this limit, file-loader will be used instead by default.

module.exports = {
  module: {
    rules: [
      {
        test: /\.(png|jpg|gif)$/i,
        use: [
          {
            loader: 'url-loader',
            options: {
              limit: 8192,
            },
          },
        ],
      },
    ],
  },
};

And to import an image into your index.js file, you would use this syntax:

import img from './image.png';

Finally, execute webpack through your preferred method.

Where are the url-loader docs?

Detailed documentation on how to utilize url-loader can be perused at the following GitHub repository: webpack-contrib/url-loader. It is comprehensive, covering the configuration and usage of all options including file size limit, mimetype, encoding, generator function for custom encoding implementations, fallback loader for when files exceed the set limit and esModule for toggling ES module syntax. It also provides usage examples to illustrate the application of these options in the webpack configuration, offering a clear step-by-step process for implementation.