Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaspack/query

Package Overview
Dependencies
Maintainers
0
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/query

A REPL to investigate the Atlaspack graphs in the cache ("offline", after the build).

  • 2.12.1-canary.3354
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

atlaspack-query

A REPL to investigate the Atlaspack graphs in the cache ("offline", after the build).

Installation

Clone and run yarn, then cd packages/dev/query && yarn link to make the atlaspack-query binary globally available.

Usage

Call .help to view a list of commands.

In a project root containing a .atlaspack-cache folder:

$ atlaspack-query
> .findBundleReason 27494aebac508bd8 TJbGI
# Asset is main entry of bundle: false
# Asset is an entry of bundle: false
# Incoming dependencies contained in the bundle:
{
  id: '3fd182662e2a6fa9',
  type: 'dependency',
  value: {
    specifier: '../../foo',
    specifierType: 0,
...

In the .getAsset 3Xzt5 variant, no quotes/parenthesis are needed. Alternatively, you can use proper JS: getAsset("3Xzt5").

The variables assetGraph and bundleGraph contain the deserialized objects.

For a single query, the command (which has to be a JS call) can be specified as a CLI parameter (the disadvantage here is that the graphs have to be loaded on every call as opposed to once when starting the REPL):

$ atlaspack-query 'findBundleReason("b0696febf20b57ce", "bNAUZ")'

FAQs

Package last updated on 20 Aug 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