Skip to content

Commit

Permalink
update changelog & remove non-working badges
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jul 1, 2019
1 parent 38d7ac3 commit 2bd5063
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# magic-string changelog

## 0.25.3

* Fix typing of `SourceMap.version`.

## 0.25.2

* Remove deprecated `new Buffer(...)`
Expand Down
33 changes: 12 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
# magic-string

<p align="center">
<a href="https://travis-ci.org/Rich-Harris/magic-string">
<img src="http://img.shields.io/travis/Rich-Harris/magic-string.svg"
alt="build status">
</a>
<a href="https://npmjs.org/package/magic-string">
<img src="https://img.shields.io/npm/v/magic-string.svg"
alt="npm version">
</a>
<a href="https://github.com/Rich-Harris/magic-string/blob/master/LICENSE.md">
<img src="https://img.shields.io/npm/l/magic-string.svg"
alt="license">
</a>
<a href="https://david-dm.org/Rich-Harris/magic-string">
<img src="https://david-dm.org/Rich-Harris/magic-string.svg"
alt="dependency status">
</a>
<a href="http://codecov.io/github/Rich-Harris/magic-string?branch=master">
<img src="http://codecov.io/github/Rich-Harris/magic-string/coverage.svg?branch=master" alt="Coverage via Codecov" />
</a>
</p>
<a href="https://travis-ci.org/Rich-Harris/magic-string">
<img src="http://img.shields.io/travis/Rich-Harris/magic-string.svg"
alt="build status">
</a>
<a href="https://npmjs.org/package/magic-string">
<img src="https://img.shields.io/npm/v/magic-string.svg"
alt="npm version">
</a>
<a href="https://github.com/Rich-Harris/magic-string/blob/master/LICENSE.md">
<img src="https://img.shields.io/npm/l/magic-string.svg"
alt="license">
</a>

Suppose you have some source code. You want to make some light modifications to it - replacing a few characters here and there, wrapping it with a header and footer, etc - and ideally you'd like to generate a source map at the end of it. You've thought about using something like [recast](https://github.com/benjamn/recast) (which allows you to generate an AST from some JavaScript, manipulate it, and reprint it with a sourcemap without losing your comments and formatting), but it seems like overkill for your needs (or maybe the source code isn't JavaScript).

Expand Down

0 comments on commit 2bd5063

Please sign in to comment.