Socket
Socket
Sign inDemoInstall

org.webjars:webjars-locator-core

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.webjars:webjars-locator-core

WebJar Locator Core functionality


Version published
Maintainers
1
Source

webjars-locator-core

This project provides a means to locate assets within WebJars.

Check out the JavaDoc

Latest Release CodeQL .github/workflows/test.yml

Obtain the full path of an asset

Find the specified partial path in any WebJar on the classpath:

WebJarAssetLocator locator = new WebJarAssetLocator();
String fullPathToBootstrap = locator.getFullPath("bootstrap.js");

Find the specified partial path in a specific WebJar:

WebJarAssetLocator locator = new WebJarAssetLocator();
String fullPathToBootstrap = locator.getFullPath("bootstrap", "bootstrap.js");

Get the full path to a file in a specific WebJar:

WebJarAssetLocator locator = new WebJarAssetLocator();
String fullPathToBootstrap = locator.getFullPathExact("bootstrap", "js/bootstrap.js");

Obtain all of the assets within a base folder

WebJarAssetLocator locator = new WebJarAssetLocator();
Set<String> fullPathsOfAssets = locator.listAssets("/multiple/1.0.0");

Advanced usage

The locator can also be configured with the class loaders that it should use for looking up resources and filter the types of resources that should be included for searching. Please visit the source code for more information.

FAQs

Package last updated on 08 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc