tldr/pages/common/asar.md

20 lines
367 B
Markdown
Raw Normal View History

2018-09-09 15:15:25 +01:00
# asar
> A file archiver for the Electron platform.
- Archive a file or directory:
2018-09-09 15:15:25 +01:00
`asar pack {{path/to/file_or_directory}} {{archived.asar}}`
2018-09-09 15:15:25 +01:00
- Extract an archive:
`asar extract {{archived.asar}}`
- Extract a specific file from an archive:
`asar extract-file {{archived.asar}} {{file}}`
- List the contents of an archive file:
2018-09-09 15:15:25 +01:00
`asar list {{archived.asar}}`