p-hatan/ mirror

pub repository

mirror.p-hatan.com

archive

2.0.8

Provides encoders and decoders for various archive and compression formats such as zip, tar, bzip2, gzip, and zlib.

Showing cached metadata. Upstream refresh is currently unavailable.

Download archive

Readme

archive

Build Status

Overview

A Dart library to encode and decode various archive and compression formats.

The library has no reliance on dart:io, so it can be used for both server and web applications.

The archive library currently supports the following decoders:

  • Zip (Archive)
  • Tar (Archive)
  • ZLib [Inflate decompression]
  • GZip [Inflate decompression]
  • BZip2 [decompression]

And the following encoders:

  • Zip (Archive)
  • Tar (Archive)
  • ZLib [Deflate compression]
  • GZip [Deflate compression]
  • BZip2 [compression]
Changelog

2.0.8

  • Fix zip isFile

2.0.7

  • Fix zip file attributes.

2.0.6

  • Support GNU tar long file names
  • Maintain unix file permissions in zip archives.

2.0.5

  • Use dart:io ZLibCodec when run from dart:io.

2.0.4

  • Fix InputStream when a Uint8ListView is used as input data.

2.0.3

  • Use Utf8 for reading strings in archive archive files, for filenames and comments.

2.0.2

  • Fixes for ZipFileEncoder.

2.0.1

  • Remove the use of part and part of in the main library.
  • Added ZipFileEncoder to encode files and directories using dart:io.
  • Added createArchiveFromDirectory function to create an Archive object from a dart:io Directory.

2.0.0

  • Moved version up for Dart 2 support.
  • Fixed an issue with file compression flags when decoding zip archives.
  • Fixed an issue with bzip2 decoding in production code.

1.0.33

  • Support the latest version of package:args.

1.0.30 - May 27, 2017

  • Add archive_io sub-package for supporting file streaming rather than storing everything in memory. This is a work-in-progress and under development.

1.0.29 - May 25, 2017

  • Fix issue with POSIX tar files.
  • Upgrade dependency on archive to >=1.0.0 <2.0.0

1.0.20 - Jun2 21, 2015

  • Improve performance decompressing large files in zip archives.

1.0.19 - February 23, 2014

  • Disable CRC verification by default when decoding archives.

1.0.18 - October 09, 2014

  • Add support for encoding uncompressed files in zip archives.

1.0.17 - April 25, 2014

  • Fix a bug in InputStream.

1.0.16 - March 02, 2014

  • Add stream support to Inflate decompression.

1.0.15 - February 16, 2014

  • Improved performance when writing large blocks.

1.0.14 - February 12, 2014

  • Misc updates and fixes.

1.0.13 - February 06, 2014

  • Added BZip2 encoder.

  • BREAKING CHANGE: File was renamed to ArchiveFile, to avoid conflicts with dart:io.

1.0.12 - February 04, 2014

  • Added BZip2 decoder.

1.0.11 - February 02, 2014

  • Changed InputStream to work with typed_data instead of List<int>, should reduce memory and increase performance.

1.0.10 - January 19, 2013

  • Renamed InputBuffer and OutputBuffer to InputStream and OutputStream, respectively.

  • Added readBits method to InputStream.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add archive
pubspec.yaml
name: archive
version: 2.0.8
author: Brendan Duncan <brendanduncan@gmail.com>
description: Provides encoders and decoders for various archive and compression formats such as zip, tar, bzip2, gzip, and zlib.
homepage: https://github.com/brendan-duncan/archive
environment:
  sdk: '>=2.0.0-dev.49.0 <3.0.0'
documentation: https://github.com/brendan-duncan/archive/wiki
dependencies:
  crypto: '>=2.0.0 <3.0.0'
  args: '>=1.4.0 <2.0.0'
  path: '>=1.5.1 <2.0.0'
dev_dependencies:
  test: '>=0.12.13 <2.0.0'
  build_web_compilers: '>=0.3.6 <2.0.0'
  build_runner: '>=0.8.10 <2.0.0'

Version history

VersionPublishedArchiveSHA-256
1.0.02013-12-31T00:47:39.877440ZDownload6f3a35b8084deef6fa8c21da274be1a7ee6be07ed8818b96689b6ad5e33bdee8
1.0.22014-01-02T23:59:07.879730ZDownload0e14920d0013ae397154ca6ae25c51e2143b1d3ae801af6c140a741c9d578ff6
1.0.32014-01-03T23:37:21.602240ZDownload5b96be2120ec2cef2c74ef8b99e5844e2c614502fbe1a02d8fde25c1271013d4
1.0.42014-01-04T06:38:10.938210ZDownload1e6da3aacd536c747718389786571d84bb994b2e577eb68e1e399c079901ebcb
1.0.52014-01-04T08:36:33.021200ZDownloadb166e276b16271fcbac344aba456dbc53aa7d2e0da9514a8491b41fd50e14845
1.0.62014-01-08T20:12:29.462990ZDownload8f9dd3bdefaf91ad2e4e86a251e42d78811ecff3a28422dcf8ecdbe0dfb364f6
1.0.72014-01-09T18:28:35.312050ZDownloadd39b52d90a6e08a5432d85a21d01851785d9248c45ba6e9e7bd8c83df1424369
1.0.82014-01-13T18:45:39.611700ZDownloadda45813ca78adcb3ec6ca060efd5e999b6fc6ce99ec8e8163d341dbae946e292
1.0.92014-01-18T00:41:14.070570ZDownload804d21255784a1cbf2c81d10e3472cf1ab6581ed761b53a9ed04962512bfb426
1.0.102014-01-19T22:23:48.608030ZDownload28ab87e4ac5ce4ccef9cbf045671aab21e14fca42e7125bc79debea5f2c8988f
1.0.112014-02-02T20:38:22.369040ZDownload79dd20a7bbd53287162cab233ed968b68bbb4ce9aaef96b01c7bc8c81ee1e3ec
1.0.122014-02-05T06:24:32.596030ZDownload9d77912572dd2306c4f8cb98ebef1107d40c3e05fc4218a101a82a1acb1aa177
1.0.132014-02-06T19:32:06.561800ZDownload134cacc8c6074d95f2a6744f8619f48f68a478763cebfdc25ef92c35bd6cc586
1.0.142014-02-13T00:01:04.297180ZDownload8178910896dd870813f96a3797a656661b50c7318fda1e514f5a7eeb99bd4027
1.0.152014-02-17T06:05:19.103940ZDownloade27ef30085f4e5710f939da1690b1f13ca742c6a3087b9e0b29587969bb6fb3b
1.0.162014-03-06T21:13:48.239610ZDownload3c44950c2b7d46f9d0fdb11c6a728694adb9fa0a90a39c0abd4c3f078df7fc8f
1.0.172014-04-26T08:25:20.362730ZDownloadb28b759bbd2b04bf15311b8a03333e431c28df4d07cba7b512a7e516ac075424
1.0.182014-10-10T03:41:18.238060ZDownloade975718d7f2ceb839ce16788e5fa539f0e3da95622fb3a1eab70f7c0166cd398
1.0.192015-02-24T05:01:24.265ZDownloadd5cb24501b939677827080393de1b59831ff2e548c3902efc6224185a2759fbe
1.0.202015-06-22T04:25:09.652ZDownload0c9527a88fe6418c2402d6a4da53c4f98d1de4d2c7b346a6f5a0a48340240347
1.0.212016-05-13T23:43:35.388ZDownload408e05a5f18777a9af790a9cc4afd3564ad89585f611c0476f5015ce4bbfff0c
1.0.222016-05-17T18:30:24.475ZDownloadcef274b8851f3c0ee370082ef369e866794374a149e849b259cabe050c352cd1
1.0.232016-05-19T21:49:12.598ZDownload2630b5becbb97c505592941b88f8de41724c67513dee51692722a28070d8fd17
1.0.242016-06-06T19:54:20.978ZDownload17fbda4bdb25e0f9dec15100032b1ed3829ec865e350aeb0aea3d13ea71be44f
1.0.252016-08-17T17:49:04.387ZDownload104d93f4723bf002eaaa7cb43e3fecb1caa62999697b4279c59a102d03625849
1.0.262016-11-17T05:09:11.871ZDownload73c0d27eb056081a5fc32650763c9a9529add61ddbb00ada094400b54ed2b0dc
1.0.272016-11-23T04:44:23.380ZDownloadc05654256072f7eb0a351fb97605bbfdb02ba191241de2ddec61041982fc3206
1.0.282017-02-06T19:40:45.410ZDownload0b3bc7ee11c47cf0782f2b9dd92ad01f99543e3275fb527353db016a53b0e0e8
1.0.292017-05-25T20:02:00.439629ZDownload60a380c75834bee5fa371726cf512414f12df3f4df8a3b53c2fe2c0167285ca9
1.0.312017-06-28T17:31:35.677863ZDownload8e65d0c481aecd2968f45ab8cc583d62a7e21bc9c91b14d4d57c85e6dc026ff0
1.0.322017-10-12T21:06:41.847828ZDownloadc7398c922fdbb95168248778e9859c29ee0276068816afe7f5654980f4fe717f
1.0.332017-12-13T18:40:24.057750ZDownload3203b92e89ab9a2ef30128a91bd657602f2643305eb801e138df120a28a5b591
2.0.02018-05-29T05:52:01.862241ZDownload58e81db2edcd2bd83361d6133b6a211b298f76712b4bee30bad8dca4f60625c9
2.0.12018-08-05T04:39:42.064719ZDownloadcfc92325500c3539fc188eac6ee063c7f0183064d472eb4316917a1a71dd4ee0
2.0.22018-08-07T03:17:35.496206ZDownload9644d0f0b52043fe1627745792654e3c458f7f2f1f66e23bebafd937fbf26c6f
2.0.32018-08-18T06:07:25.005993ZDownload4754fb4b0e0b5ccc8ca49856ee01eabf904ee6220e41c25f79f4fbb26baf7318
2.0.42018-08-22T03:18:29.499172ZDownload6d9a421f7348ac54271883ee7ffd9b0dcdcf6f082308c501aad5f4f6ce0a1df3
2.0.52018-12-13T04:39:58.256504ZDownload2390d6cc9611ebbe8d95b116655bc69c6242e093438b104c032db5e4c1ab7f6b
2.0.62019-01-19T05:16:45.186032ZDownloadc90da5edf602b4724999187691eead7d11ddc0e0885c6f555799eda9cf4b4555
2.0.72019-01-20T06:58:01.058717ZDownload5147763d8be4e4b282ad990411b92b1e88299cf0f99ab620274f3af6a2e6dd65
2.0.82019-01-25T05:11:48.696457ZDownload4f8bfea46f7ad7efe06084e6b1c9e583bee9f8982efc69cf5827a1ce491d5951
2.0.92019-05-17T05:00:40.586083ZDownloadaeb771e05225f4887ca86f2bdc848c818ee81dea5b0bb14e7466cd9b9cc938e5
2.0.102019-06-12T06:40:19.858017ZDownload61d02a97dcf6fe3b8057da48670bec4bde35d4fbe7b3379c28820cfd342e2f08
2.0.112019-11-08T23:56:24.861902ZDownload3cdeb2448d59875cb7dfe827355c6965dfe053b43ae30d61fbf48a8ac9ab83a4
2.0.122019-12-30T23:11:39.084830ZDownload6963bfd3955d9d5ebf2bc22cf77a37a0f30e93f73237559bbf9ed380ad7f35ab
2.0.132020-01-02T20:03:05.349256ZDownloadf06332efd7b0886705a929c5d3b52cda4d6d0979627c1dbe9a18fc24becf50ae
3.0.0-nullsafety.02021-01-20T19:01:05.050676ZDownload162c5842cc58d4316b5beccb590f6e04fba7098b25efbe95d8a4c721a628efaa
3.0.02021-02-03T20:18:58.659574ZDownloade739f05a0aed98dda77aeac57000d35fc6ed4650b8b4e32766f044a411d4dae9
3.1.12021-02-28T17:33:10.342801ZDownload5ec27c759d2b03e84b238027addf0ef9dd02d8bd02fe832323077df2dd60b297
3.1.22021-03-02T00:30:45.967667ZDownloada92e39b291073bb840a72cf43d96d2a63c74e9a485d227833e8ea0054d16ad16
3.1.32021-09-29T15:55:38.402116ZDownloadaacb8a4d2d9b41590c29b421e579c48a3305139efcecf428b02c54e735437963
3.1.42021-09-29T17:19:27.707300ZDownload96bf61528c4ff3d8370ab031bc437bec8a5386e2b6ad5c18d7773d7f1fb6d5d3
3.1.52021-09-29T22:24:48.528938ZDownloadb64a2605c583cfb68f7a79a0d38a92dec9d86d0f3425453b9617217742b20ef9
3.1.62021-10-11T15:44:36.402744ZDownloadae3e2b5dcfd7262920f3a36df8f04a9f798bafe395d7dc6cf2a7178ae8aba792
3.1.72022-01-01T19:49:03.251790ZDownloadf9694ffcb0e96af59a74a8bb9c588e227154fdf5c597df537657ae3835f27271
3.1.82022-01-01T22:11:20.720948ZDownload781365ca8aedb3203cb99f2abed8a9e89d6aa358e8d038068acb81664e1ccdad
3.1.92022-01-20T04:21:11.468529ZDownloadd1892491f45480ecd260c7f7e891bed73208f13e2d45f1d34d7466f7a83f359b
3.1.102022-01-29T18:55:23.124267ZDownloadd59e0d1e049c5bd66fbf55a865fe554f2519fd940b2ca672f4d0e2baf79aa417
3.1.112022-01-29T22:42:52.475489ZDownloadd65e8c59051d72808ae971dcc2465b593177a33162edaee29c3b1858b328b98f
3.2.02022-02-13T03:20:24.404046ZDownload29fa72e85814672ab1e4d8b36f21cfadd34b16ce2c5c35e86a00df560e9b7940
3.2.12022-02-18T05:45:40.689421ZDownloadb4e685f9b52b7c50b6433fa4008572f157ca5841f4dbddda513a112a8c23cb69
3.2.22022-03-09T16:54:26.444236ZDownloadcdecf5f45a132ba5671845ec126269a17a69979c0f385852ad4a7d8639016441
3.3.02022-03-25T17:59:02.828040ZDownloadeb33140ede1b4039f4ad631f7bf3cfa58e24514e8bf87184bc32f17541af87fc
3.3.12022-07-20T03:50:59.713217ZDownload793964beb8e297995714326628881437d4211f10fc8843534bab54129cd896ee
3.3.22022-10-16T17:28:10.982626ZDownload80e5141fafcb3361653ce308776cfd7d45e6e9fbb429e14eec571382c0c5fecb
3.3.32022-11-11T17:56:40.057604ZDownload3ad98253a850fc6d1bdbfd988f5f9b8b006ad73cdf2e3a37aa23391fb411253d
3.3.42022-11-11T23:16:47.504017ZDownload76d919e063a09d19d61f99463a20dba1c1e8d0bc3a5eba91bac2853fac095373
3.3.52022-11-23T03:44:17.766377ZDownloaded7cc591a948744994714375caf9a2ce89e1d82e8243997c8a2994d57181c212
3.3.62023-01-27T19:23:04.850709ZDownloadd6347d54a2d8028e0437e3c099f66fdb8ae02c4720c1e7534c9f24c10351f85d
3.3.72023-04-09T05:12:04.130142ZDownload0c8368c9b3f0abbc193b9d6133649a614204b528982bebc7026372d61677ce3a
3.3.82023-09-03T02:06:28.636178ZDownload49b1fad315e57ab0bbc15bcbb874e83116a1d78f77ebd500a4af6c9407d6b28e
3.3.92023-09-11T03:15:49.178716ZDownloade0902a06f0e00414e4e3438a084580161279f137aeb862274710f29ec10cf01e
3.4.02023-09-22T04:12:07.799911ZDownload1227dc3efc4ea571eebb2dfb814506ed2cfb1d4b1b89fb918abdddde617ead3c
3.4.12023-09-23T15:43:56.464691ZDownloade44ad5bbb3bbe88ae8809c2eb1682c099c2e13c471aed13a5b7e67572f7b57ae
3.4.22023-09-23T16:52:33.513622ZDownload20071638cbe4e5964a427cfa0e86dce55d060bc7d82d56f3554095d7239a8765
3.4.32023-09-29T03:53:44.208657ZDownloadd4dc11707abb32ef756ab95678c0d6df54003d98277f7c9aeda14c48e7a38c2f
3.4.42023-09-30T15:35:13.672937ZDownload06a96f1249f38a00435b3b0c9a3246d934d7dbc8183fc7c9e56989860edb99d4
3.4.52023-10-07T20:34:58.814026ZDownloadca12e6c9ac022f33fd89128e7007fb5e97ab6e814d4fa05dd8d4f2db1e3c69cb
3.4.62023-10-11T03:34:06.029738ZDownload7e0d52067d05f2e0324268097ba723b71cb41ac8a6a2b24d1edf9c536b987b03
3.4.72023-11-05T03:23:38.329496ZDownload27b24c1b1ab091964e7c0079dcedc9a04d992089df724b9cea45fe6f82d48de1
3.4.82023-11-06T03:56:00.604223ZDownload0da817eab9833cc222ee5575789664e99f60fe0c554be55dc1979f9b4ec6dd73
3.4.92023-11-07T17:04:23.360657ZDownload7b875fd4a20b165a3084bd2d210439b22ebc653f21cea4842729c0c30c82596b
3.4.102024-01-03T01:26:42.762759ZDownload22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d
3.5.02024-04-27T03:32:34.954369ZDownload0763b45fa9294197a2885c8567927e2830ade852e5c896fd4ab7e0e348d0f373
3.5.12024-05-04T04:50:12.170338ZDownloadecf4273855368121b1caed0d10d4513c7241dfc813f7d3c8933b36622ae9b265
3.6.02024-05-22T14:44:58.921242ZDownload6bd38d335f0954f5fad9c79e614604fbf03a0e5b975923dd001b6ea965ef5b4b
3.6.12024-06-01T02:43:17.892450ZDownloadcb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d
4.0.02024-12-07T18:06:17.045138ZDownload477ffbd1fda1816bd7d5d5b9432d618e62ece95949e314491ec622d40b10bab8
4.0.12024-12-09T02:03:54.326091ZDownload08064924cbf0ab88280a0c3f60db9dd24fec693927e725ecb176f16c629d1cb8
4.0.22024-12-19T17:37:00.017750ZDownload6199c74e3db4fbfbd04f66d739e72fe11c8a8957d5f219f1f4482dbde6420b5a
4.0.32025-02-22T01:12:36.116332ZDownload528579c7e4579719f04b21eeeeddfd73a18b31dabc22766893b7d1be7f49b967
4.0.42025-02-28T15:33:42.618278ZDownload0c64e928dcbefddecd234205422bcfc2b5e6d31be0b86fef0d0dd48d7b4c9742
4.0.52025-03-23T17:35:45.543239ZDownload7dcbd0f87fe5f61cb28da39a1a8b70dbc106e2fe0516f7836eb7bb2948481a12
4.0.62025-04-18T03:44:21.839208ZDownloada7f37ff061d7abc2fcf213554b9dcaca713c5853afa5c065c44888bc9ccaf813
4.0.72025-04-23T05:33:34.025848ZDownload2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd
4.0.82026-02-17T03:21:53.504773ZDownload16a4a4610a4375e2cfe0db0985bd817935219c627f8fd25a4b2a5b408ed34e64
4.0.92026-02-17T14:52:25.487906ZDownloada96e8b390886ee8abb49b7bd3ac8df6f451c621619f52a26e815fdcf568959ff
4.1.02026-08-19T02:51:37.022224ZDownloadbe169cf6ac481e052c4538715d88841d567150dfe1df38aaec76461a4e7b39f2
4.2.02026-08-22T21:08:11.409906ZDownloadace891da0862b0e4cabbb064ee3fd87b2728b898949fdb366d83fe98342c9f19
4.3.02026-09-13T17:42:33.821730ZDownload6c5bcd986e06b94e3c40244af471750840a3d2341d1f9763a1100a14add517b4
4.4.02026-10-10T02:07:38.474462ZDownload3aa20c6b5617b632a1b7198dcca3d88065d37232485b9a6c6c14dc8f5357d279
4.5.02026-10-11T00:26:13.413925ZDownload58c8d17d8d589c4259f773522815115de873c397b977a29993588487d3f9acb4
4.5.12026-10-11T14:33:40.521718ZDownloadf773153144ce0456ae77d96bd247f2efd58efe4f3e5ad42616d0385c031aea11
4.5.22026-10-13T03:46:16.484449ZDownload0d58d1fa1fddf6588251ccf2819f3fb3b6d0452c1b2813ac7413a05592bfbefe

Dependencies

args "\u003e=1.4.0 \u003c2.0.0"

crypto "\u003e=2.0.0 \u003c3.0.0"

path "\u003e=1.5.1 \u003c2.0.0"