{"id":15687095,"url":"https://github.com/fabioricali/undoo","last_synced_at":"2025-07-14T03:08:24.809Z","repository":{"id":57385966,"uuid":"121263563","full_name":"fabioricali/undoo","owner":"fabioricali","description":"Undo/redo manager","archived":false,"fork":false,"pushed_at":"2018-02-17T08:02:36.000Z","size":126,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T01:15:27.943Z","etag":null,"topics":["history","history-management","undo-redo"],"latest_commit_sha":null,"homepage":"https://fabioricali.github.io/undoo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabioricali.png","metadata":{"files":{"readme":"README.hbs","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-12T15:25:35.000Z","updated_at":"2024-03-26T22:12:34.000Z","dependencies_parsed_at":"2022-08-31T20:51:45.507Z","dependency_job_id":null,"html_url":"https://github.com/fabioricali/undoo","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/fabioricali/undoo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fundoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fundoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fundoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fundoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioricali","download_url":"https://codeload.github.com/fabioricali/undoo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fundoo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265236838,"owners_count":23732504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["history","history-management","undo-redo"],"created_at":"2024-10-03T17:43:22.244Z","updated_at":"2025-07-14T03:08:24.775Z","avatar_url":"https://github.com/fabioricali.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Undoo\nUndo/redo manager\n\n\u003ca href=\"https://travis-ci.org/fabioricali/undoo\" target=\"_blank\"\u003e\u003cimg src=\"https://travis-ci.org/fabioricali/undoo.svg?branch=master\" title=\"Build Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" title=\"License: MIT\"/\u003e\u003c/a\u003e\n\n## Installation\n\n### Node.js\n```\nnpm install undoo --save\n```\n\n### Browser\n\n#### Local\n```html\n\u003cscript src=\"node_modules/undoo/dist/undoo.min.js\"\u003e\u003c/script\u003e\n```\n\n#### CDN unpkg\n```html\n\u003cscript src=\"https://unpkg.com/undoo/dist/undoo.min.js\"\u003e\u003c/script\u003e\n```\n\n## Example\n\n```javascript\nconst Undoo = require('undoo');\n\nconst myHistory = new Undoo();\n\nmyHistory\n    .save('one')\n    .save('two')\n    .save('three')\n    .save('four');\n\nmyHistory.undo((item)=\u003e{\n    console.log(item); //=\u003e three\n});\n\nmyHistory.current(); //=\u003e three\n\nmyHistory.redo((item)=\u003e{\n    console.log(item); //=\u003e four\n});\n\n```\n\n## Use provider\n\n```javascript\nconst Undoo = require('undoo');\n\nconst myHistory = new Undoo({\n    provider: () =\u003e document.getElementById('myTextArea').value\n});\n\nmyHistory.save();\n\n```\n## Demo\n\n\u003ca href=\"https://fabioricali.github.io/undoo/sample/\"\u003eTry now\u003c/a\u003e\n\n## API\n\n{{\u003emain}}\n\n## Changelog\nYou can view the changelog \u003ca target=\"_blank\" href=\"https://github.com/fabioricali/undoo/blob/master/CHANGELOG.md\"\u003ehere\u003c/a\u003e\n\n## License\nUndoo is open-sourced software licensed under the \u003ca target=\"_blank\" href=\"http://opensource.org/licenses/MIT\"\u003eMIT license\u003c/a\u003e\n\n## Author\n\u003ca target=\"_blank\" href=\"http://rica.li\"\u003eFabio Ricali\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fundoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioricali%2Fundoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fundoo/lists"}