title: Compressing a file into tar.xz archive using javascript in a web browser
body: <p>I need to compress a file into tar.xz archive using javascript in a web browser. Is there any workable library to do this work?
  That is, I need libraries for TAR and XZ (LZMA2) compressing.
  But I've found just <a href="https://github.com/nmrugg/LZMA-JS/" rel="nofollow">https://github.com/nmrugg/LZMA-JS/</a> and for zip compressing (<a href="http://gildas-lormeau.github.io/zip.js/" rel="nofollow">http://gildas-lormeau.github.io/zip.js/</a>) but not for xz and tar.</p>
  
  <p><strong>EDIT</strong>
  XZ pure js library is here:
  <a href="https://blog.slava.online/xz-archiver-webworker-for-browser-pure-js/" rel="nofollow">https://blog.slava.online/xz-archiver-webworker-for-browser-pure-js/</a></p>