magic-string-stack
- Version 1.1.0
- Published
- 12.3 kB
- 2 dependencies
- MIT license
Install
npm i magic-string-stack
yarn add magic-string-stack
pnpm add magic-string-stack
Overview
magic-string with the capability of committing changes
Index
Classes
class MagicStringStack
class MagicStringStack implements MagicStringStackType {}
constructor
constructor(content: string, _options?: any);
property original
readonly original: string;
method clone
clone: () => this;
method commit
commit: () => this;
Commit current changes and reset the
.original
property and the indices.When running
generateMap
, the sourcemaps will be generated and merged into a single sourcemap.
method generateDecodedMap
generateDecodedMap: (options?: SourceMapOptions) => DecodedSourceMap;
Generates a sourcemap object with raw mappings in array form, rather than encoded as a string. Useful if you need to manipulate the sourcemap further, but most of the time you will use
generateMap
instead.
method generateMap
generateMap: (options?: SourceMapOptions) => SourceMap;
Generates a version 3 sourcemap.
method rollback
rollback: () => this;
Rollback to the previous commit.
method toString
toString: () => string;
Interfaces
interface MagicStringStack
interface MagicStringStack extends MagicStringStackType {}
Package Files (1)
Dependencies (2)
Dev Dependencies (15)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/magic-string-stack
.
- Markdown[](https://www.jsdocs.io/package/magic-string-stack)
- HTML<a href="https://www.jsdocs.io/package/magic-string-stack"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2982 ms. - Missing or incorrect documentation? Open an issue for this package.