New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

fast-magic-string

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-magic-string

Rust version of [magic-string](https://github.com/Rich-Harris/magic-string). Inspired by [magic-string-rs](https://github.com/h-a-n-a/magic-string-rs).

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
0
Created
Source

fast-magic-string

Rust version of magic-string. Inspired by magic-string-rs.

RoadMap

Implemented

  • addSourcemapLocation
  • append
  • appendLeft
  • appendRight
  • clone
  • generateDecodedMap
  • generateMap
  • indent
  • insert
  • insertLeft
  • insertRight
  • move
  • overwrite
  • update
  • prepend
  • prependLeft
  • prependRight
  • remove
  • reset
  • slice
  • snip
  • toString
  • isEmpty
  • trimLines
  • trim
  • trimEnd
  • trimStart
  • hasChanged
  • replace
  • replaceAll

Benchmarks

Hardware Overview

Model Name: MacBook Pro
Model Identifier: MacBookPro18,3
Chip: Apple M1 Pro
Total Number of Cores: 8 (6 performance and 2 efficiency)
Memory: 16 GB

Version Overview

node: 18.15.0
magic-string: 0.30.17
fast-magic-string: workspace

Output

Task Nameops/secAverage Time (ns)MarginSamples
magic-string1,206828588.7028143657±15.48%123
fast-magic-string1,698588664.5233908365±9.24%172

Keywords

magic-string

FAQs

Package last updated on 10 Jan 2025

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