Socket
Socket
Sign inDemoInstall

@ima/dev-utils

Package Overview
Dependencies
Maintainers
9
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ima/dev-utils

IMA.js dev utils used used mainly in @ima/cli and other dev-related utilities.


Version published
Maintainers
9
Created
Source

@ima/dev-utils

Used to share common methods and utils used across other dev packages (@ima/cli, @ima/error-overlay, etc.).


Currently it mainly contains methods for compile and runtime error parsing which are used in multiple other packages.

There's intentionally no "main" export or index file and each utils file has to be imported with it's direct path. This is because some packages are used on client only while others may contain some nodejs specific syntax.

This means that you need to import each utility as:

import { extractSourceMappingUrl } from '@ima/dev-utils/sourceMapUtils';
import { FragmentLine } from '@ima/dev-utils/sourceFragment';
import { parseCompileError } from '@ima/dev-utils/compileErrorParser';
// ...

Contents

  • compileErrorParser - used to parse compile errors from currently used loaders.
  • cliUtils - utilities for CLI error formatting.
  • helpers - general regexps and other helpers.
  • sourceFragment - utility to create source fragment object containing X number of lines of code around highlighted line from provided source.
  • sourceMapUtils - utils to extract source map URL from file contents.

This package is part of the IMA.js application stack, see imajs.io for more info about the whole project.

Keywords

FAQs

Package last updated on 01 Dec 2023

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