selective-undo-text
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

selective-undo-text

A Selective Undo library for text editing.

Demo

http://codepen.io/ktsn/pen/qZxdaY

Usage

import { Buffer } from 'selective-undo-text';
 
const buf = Buffer('Initial Text');
 
buf.addText(7, ' Input');
console.log(buf.text) // Initial Input Text
 
buf.removeText(0, 8);
console.log(buf.text); // Input Text
 
buf.undo(0);
console.log(buf.text); //  Text

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    2
  • 0.1.2
    1
  • 0.1.1
    1
  • 0.1.0
    2

Package Sidebar

Install

npm i selective-undo-text

Weekly Downloads

5

Version

0.2.0

License

MIT

Last publish

Collaborators

  • ktsn