Provides tools to interact with NPM.

Usage

  /** @var Drupal\npm\Plugin\NpmExecutableInterface $npmExecutable */
  $npmExecutable = \Drupal::service('plugin.manager.npm_executable')->getExecutable();

Details

Right now yarn is the only supported executable. Others can be added by implementing NpmExecutable Plugins. Each plugin has a weight that determines its priority and an isAvailable method that tells if it's operational (e.g. yarn is installed). The plugin manager's getExecutable method returns the first available executable.

Related modules

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Developer tools
  • chart icon64 sites report using this module
  • Created by blazey on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases