Package Exports
- abswap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (abswap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Swap Files or Directories using Symlinks

Features
- Work with directories and regular files.
- Maintain valid symlink for the activated selection (atomicity behavior).
- Convert existing file or directory to a/b structure.
Install
| npm | yarn |
|---|---|
npm install --global abswap |
yarn global add abswap |
Usage
Usage: abswap [options] <path>
Options:
-V, --version output the version number
--init initialize a path for a/b swap
--copy copy existing path to inactive selection on initialize
--file expect (or create) regular files as targets
--directory expect (or create) directory as targets
--undo delete a/b structure und keep active selection
-h, --help output usage informationChangelog
v1.0.0
- New option
--undoto convert a/b structure back to a simple file or directory.
v0.3.0
- New option
--copyto copy existing file or directory to inactive selection on initialize.
v0.2.0
- Can convert existing files or directories.
- New options
--fileand--directoryto select file or directory mode.
v0.1.3
- Initial public version.
Contributing
Pull requests, patches, emails, issues, what ever, are welcomed!
Author
Built With
- TypeScript - JavaScript that scales.
- Jest - Delightful JavaScript Testing.
- TSLint - An extensible linter for the TypeScript language.
- Prettier - Opinionated Code Formatter.
- Visual Studio Code - Code editing. Redefined.
License
This project is licensed under the MIT License - see LICENSE for details.