{"id":20622606,"url":"https://github.com/myterminal/re-write","last_synced_at":"2025-08-06T08:24:06.062Z","repository":{"id":65372091,"uuid":"109011856","full_name":"myTerminal/re-write","owner":"myTerminal","description":"Rewrite files and directories into a single file and vice-versa","archived":false,"fork":false,"pushed_at":"2022-08-19T05:22:18.000Z","size":171,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T16:43:35.753Z","etag":null,"topics":["encryption","files"],"latest_commit_sha":null,"homepage":"","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/myTerminal.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-10-31T15:01:21.000Z","updated_at":"2022-08-03T23:25:57.000Z","dependencies_parsed_at":"2023-01-19T23:16:42.773Z","dependency_job_id":null,"html_url":"https://github.com/myTerminal/re-write","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fre-write","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fre-write/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fre-write/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fre-write/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myTerminal","download_url":"https://codeload.github.com/myTerminal/re-write/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242300895,"owners_count":20105318,"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":["encryption","files"],"created_at":"2024-11-16T12:23:56.351Z","updated_at":"2025-03-06T23:24:17.689Z","avatar_url":"https://github.com/myTerminal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# re-write\n\n[![npm version](https://badge.fury.io/js/re-write.svg)](https://badge.fury.io/js/re-write)\n[![npm downloads](https://img.shields.io/npm/dt/re-write.svg)](https://www.npmjs.com/package/re-write)\n[![License](https://img.shields.io/github/license/myTerminal/ample-alerts.svg)](https://opensource.org/licenses/MIT)  \n[![Build Status](https://travis-ci.org/myTerminal/re-write.svg?branch=master)](https://travis-ci.org/myTerminal/re-write)\n[![Code Climate](https://codeclimate.com/github/myTerminal/re-write.png)](https://codeclimate.com/github/myTerminal/re-write)\n[![js-myterminal-style](https://img.shields.io/badge/code%20style-myterminal-blue.svg)](https://www.npmjs.com/package/eslint-config/myterminal)\n[![Coverage Status](https://img.shields.io/coveralls/myTerminal/re-write.svg)](https://coveralls.io/r/myTerminal/re-write?branch=master)  \n[![NPM](https://nodei.co/npm/re-write.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/re-write/)\n\nRewrite files and directories into a single file and vice-versa\n\n\u003e **Note:** Breaking changes in version 1\n\n## What is it?\n\n*re-write* is a command-line utility that can be used to 're-write' multiple files (and/or directories) into a single file, optionally with password protection.\n\n## Background\n\nBack in late 2009, I wrote an encryption algorithm capable of obfuscating a single file and I used it to transfer data past an intelligent security system designed specifically to intercept the transfer of computer code. The data belonged to me and I believed that I shouldn't be stopped from carrying it with me. The utility was written in VB.Net as a class library and was a small dependency of a far larger windows application.\n\nIn early 2010, I continued working on it to improve its efficiency and later I could enable it to work on multiple inputs, which could even be a combination of files and directories.\n\n're-write' is inspired by that old algorithm and has been re-written in JavaScript, which almost forms the reason for its name. The purpose of this 're-write' is to make sure that the old code doesn't die and also that I could share it with the open-source community.\n\n## Installation\n\n*re-write* is available on *Npm*. You can install it globally with a simple command.\n\n    npm install -g re-write\n\n## How to Use\n\n're-write' just has two commands. The inputs you provide and how they are interpreted depend upon the command you use.\n\n### How to 're-write' Files\n\nTo 're-write' data into a single file, use the following command:\n\n    re-write-do \u003csource1\u003e [source2] [source3] ... \u003ctarget\u003e\n    \n- `source1`, `source2`, `source3`, etc. could be one or more files or directories. At least one is required.\n- `target` should be an output file or a directory where the 're-written' file should be placed.\n\nYou can optionally use a password when asked for. When not provided, encryption is skipped entirely.\n\n### How to un-'re-write' files\n\nTo un-'re-write' data from a 're-written' file to the earlier form, use the following command:\n\n    re-write-undo \u003csource\u003e [target]\n\n- `source` needs to be a file that was earlier created by 're-write'.\n- `target` can to be a directory in which the recovered data needs to be extracted. When not supplied, it defaults to the current directory.\n\nIf you used a password while 're-writing', you'll be asked for one before you can un-'re-write'.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Fre-write","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyterminal%2Fre-write","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Fre-write/lists"}