Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

selective-undo-text

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

install

npm i selective-undo-text

Downloadsweekly downloads

8

version

0.2.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar