Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed May 9, 2016
1 parent c0d535e commit e2cd263
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,11 @@ Prefixes each line of the string with `prefix`. If `prefix` is not supplied, the

The `options` argument can have an `exclude` property, which is an array of `[start, end]` character ranges. These ranges will be excluded from the indentation - useful for (e.g.) multiline strings.

### s.insert( index, content )

**This method is deprecated. In future versions, usage will result in a warning, and eventually an error. Use `insertAfter` and `insertBefore` instead.**

Inserts the specified `content` at the `index` in the original string. Returns `this`.

### s.insertAfter( index, content )
### s.insertLeft( index, content )

Inserts the specified `content` at the `index` in the original string. If a range *ending* with `index` is subsequently moved, the insert will be moved with it. Returns `this`.

### s.insertBefore( index, content )
### s.insertRight( index, content )

Inserts the specified `content` at the `index` in the original string. If a range *starting* with `index` is subsequently moved, the insert will be moved with it. Returns `this`.

Expand Down

0 comments on commit e2cd263

Please sign in to comment.