Socket
Socket
Sign inDemoInstall

@vue/cli-shared-utils

Package Overview
Dependencies
102
Maintainers
3
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @vue/cli-shared-utils

shared utilities for vue-cli packages


Version published
Maintainers
3
Created

Package description

What is @vue/cli-shared-utils?

The @vue/cli-shared-utils package provides a set of utilities for Vue CLI and Vue projects. These utilities include functions for logging, validation, module loading, and other common tasks needed by Vue CLI plugins and other project tooling.

What are @vue/cli-shared-utils's main functionalities?

Logging

Provides functions to output log messages with different levels of importance.

const { log, warn, error } = require('@vue/cli-shared-utils');

log('This is a log message.');
warn('This is a warning message.');
error('This is an error message.');

Validation

Includes functions to validate strings such as project names.

const { validateProjectName } = require('@vue/cli-shared-utils');

const projectName = 'example';
if (validateProjectName(projectName)) {
  log('Project name is valid.');
} else {
  error('Project name is invalid.');
}

Module Loading

Provides a function to safely load modules that may or may not be present in the project.

const { loadModule } = require('@vue/cli-shared-utils');

const moduleName = 'vue';
const module = loadModule(moduleName, __dirname);
if (module) {
  log(`Loaded ${moduleName} module.`);
} else {
  error(`Failed to load ${moduleName} module.`);
}

Other packages similar to @vue/cli-shared-utils

Changelog

Source

5.0.0-beta.7 (2021-10-26)

:rocket: New Features
  • @vue/cli-service
    • #6771 feat!: remove url-loader and file-loader in favor of asset modules (@sodatea)
    • #6752 Add a top-level terser option to allow users to customize the minifier (@screetBloom)
:boom: Breaking Changes
  • @vue/cli-service
    • #6781 fix!: set hashFunction to xxhash64 to fix Node 17 compatibility (@sodatea)
    • #6771 feat!: remove url-loader and file-loader in favor of asset modules (@sodatea)
:bug: Bug Fix
  • @vue/cli-service
    • #6781 fix!: set hashFunction to xxhash64 to fix Node 17 compatibility (@sodatea)
  • @vue/cli-plugin-unit-jest
Committers: 3

Readme

Source

@vue/cli-shared-utils

shared-utils for vue-cli

Keywords

FAQs

Last updated on 26 Oct 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc