1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/asar.md

21 lines
464 B
Markdown
Raw Normal View History

2018-09-09 16:15:25 +02:00
# asar
> A file archiver for the Electron platform.
> More information: <https://github.com/electron/asar>.
2018-09-09 16:15:25 +02:00
- Archive a file or directory:
2018-09-09 16:15:25 +02:00
`asar pack {{path/to/input_file_or_directory}} {{path/to/output_archive.asar}}`
2018-09-09 16:15:25 +02:00
- Extract an archive:
`asar extract {{path/to/archive.asar}}`
2018-09-09 16:15:25 +02:00
- Extract a specific file from an archive:
`asar extract-file {{path/to/archive.asar}} {{file}}`
2018-09-09 16:15:25 +02:00
- List the contents of an archive file:
2018-09-09 16:15:25 +02:00
`asar list {{path/to/archive.asar}}`