JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q45883F
  • License MIT

Swap a/b directories or files using symlinks

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

abswap

Swap a/b directories or files using symlinks.

Example

Initialize:

$ abswap --init example
$ ls -l
lrwxrwxrwx 1 mroth mroth    9 Jun 26 11:30 example -> example.a
drwxrwxr-x 2 mroth mroth 4096 Jun 26 11:30 example.a
drwxrwxr-x 2 mroth mroth 4096 Jun 26 11:30 example.b
lrwxrwxrwx 1 mroth mroth    9 Jun 26 11:30 example.inactive -> example.b

Swap directories:

$ abswap example
$ ls -l
lrwxrwxrwx 1 mroth mroth    9 Jun 26 11:32 example -> example.b
drwxrwxr-x 2 mroth mroth 4096 Jun 26 11:30 example.a
drwxrwxr-x 2 mroth mroth 4096 Jun 26 11:30 example.b
lrwxrwxrwx 1 mroth mroth    9 Jun 26 11:32 example.inactive -> example.a

Of course, calling abswap again swaps back again.

Features

  • Works with directories and regular files.
  • ...

Install

TBW.

Usage

TBW.

Built With

Contributing

Pull requests, patches, emails, issues, what ever, are welcomed!

Author

License

This project is licensed under the MIT License - see LICENSE for details.