{"_id":"@archival-iiif/presentation-migrator","_rev":"4-13219a5bd12689d491f72488b5ab8025","name":"@archival-iiif/presentation-migrator","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@archival-iiif/presentation-migrator","version":"1.0.0","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"dependencies":{"@archival-iiif/presentation-builder":"^1.3.0"},"devDependencies":{"typescript":"^4.4.3","ts-node":"^10.2.1"},"description":"Migrates manifests to other IIIF versions.","repository":{"type":"git","url":"git+https://github.com/archival-IIIF/presentation-migrator.git"},"keywords":["IIIF"],"author":{"name":"Archival IIIF"},"bugs":{"url":"https://github.com/archival-IIIF/presentation-migrator/issues"},"homepage":"https://github.com/archival-IIIF/presentation-migrator#readme","gitHead":"df2ac4bd2f29ebda43ab656b60250053141fd31f","_id":"@archival-iiif/presentation-migrator@1.0.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-vfQ4jwdfENF0vkr4UW1NIeD+b52q+i7mhDZgKXu4bDEILhC7mSJEGlkFt26ollcHSDyGfbwuBTne3WdoLe4IAA==","shasum":"ba4582763b583324bcf70b4f843b6877d5c55062","tarball":"https://registry.npmjs.org/@archival-iiif/presentation-migrator/-/presentation-migrator-1.0.0.tgz","fileCount":9,"unpackedSize":17566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFvhCRA9TVsSAnZWagAAklUP+wZmpdSVw9JSJwpxjtvk\nhhwkjuKKqVnrjFelE5DsAwsjgwW9q9J3K9IsEf9hiU3OOXTt+CnrqRf/B4n9\nj+dBjNECgVTZVqDU1sikkCVtaueysiHNHdYvWpCagr/qopE0KYtuVQuWtXAO\nZco2oTHzNOFFKw/wLcT+r9dJGrPaKWvg6bF3AJUiipMokNCeMKInAwun88ux\nlawwK7iS66Ub6C0Ljba49RrqoIAasaE/EQikLfh6vn04AotMFnrDKdeDVY+A\nRiIY0mSq6pc5iTehRnlA/douNkZKDsZ2i24tNUSTBJ/41HZjlMsie7p/Qfps\nUUt968S+9W+Ypio2johpEbC/8jsVkNWtpmuFNN5lwtm1jp+nslvYWNKp0pHD\nsSz3kOH6PSi+DqswMw8eCFidLDhT8EtMOgVgn24I+rdYituRlP57yZbRODGu\nrlmiw4SUrGaML38Xv5hhcPgCIP7fnQGso7sC1MZ8kQQDGabPZszfz8U/dP6r\nI5XYsdWnrWNd8zxILSL621Y8uK5I5cyg7SS75PlCtSBgpQHdmSgc51ZWWdoG\nTYtvcnvVCBwW1Nl1ts5dMG9E7SjPuMltAlZGXDv6fvnhwzskuQfSJO3bOC+E\noInpSxh2qSBrXypJMDq95vZAHfPJJzeyjvxnvRCAUoyIdj34wRMHlydbjtw+\nT7nf\r\n=sfbp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUhZ1gXJ/b7VS3p1vmn5vO+amyY3nmKBXekfqPEGiX6AiAhCLf5Sgx6H5397AJM0j6OaghohLFNHSxrgwWOxk4KEw=="}]},"_npmUser":{"name":"swiss-social-archives","email":"archival-iiif@sozialarchiv.ch"},"directories":{},"maintainers":[{"name":"swiss-social-archives","email":"archival-iiif@sozialarchiv.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/presentation-migrator_1.0.0_1632568832953_0.6540849457001319"},"_hasShrinkwrap":false},"1.0.1":{"name":"@archival-iiif/presentation-migrator","version":"1.0.1","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"dependencies":{"@archival-iiif/presentation-builder":"^1.5.0"},"devDependencies":{"typescript":"^4.4.3","ts-node":"^10.2.1"},"description":"Migrates manifests to other IIIF versions.","repository":{"type":"git","url":"git+https://github.com/archival-IIIF/presentation-migrator.git"},"keywords":["IIIF"],"author":{"name":"Archival IIIF"},"bugs":{"url":"https://github.com/archival-IIIF/presentation-migrator/issues"},"homepage":"https://github.com/archival-IIIF/presentation-migrator#readme","licenseText":"MIT License\n\nCopyright (c) 2021 Archival IIIF\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@archival-iiif/presentation-migrator@1.0.1","dist":{"shasum":"63c21834299840b943c05b4b048d946bf9bf4b29","integrity":"sha512-9Gd8hEdSzbq2hP53MAmCQbfJhQMKUYajxJk/doRz5JhW7aa95V0eKqOK4zCOgZFRq7+G1D3lhpFa3ugYgUgtdQ==","tarball":"https://registry.npmjs.org/@archival-iiif/presentation-migrator/-/presentation-migrator-1.0.1.tgz","fileCount":11,"unpackedSize":17934,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2vUt9wJYxUXiZMYcY2+DuZ8GcdiH7AQkRqlXehGQqtwIgDgunGAbGiWEuuyYjJbo875Hf0sL7tezbee51skbGSes="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGjqSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqs9A//ZB/Eo7hgLz4Zm8/JavClVwK44IkhCbHnPKxlkBgppXXjUSDM\r\ni+j5sxCNW5nHPrePS+IItt8Gm38RIg8SjLNIs0MLpn32eo28hLkLMjS4K7RG\r\nIPS5pQwJ8gd22M9C834YuN0Fi+fzSgGEEXMzG01PGQnp6/2mMNXPihHAqAyG\r\nwPXFLQrPFFe+DGQDRsKHVXZxVNh59H7CTM7+CnieqYeoLGZDsmjOp1ljgxfN\r\nUmPM/WoA3Pd8qTteea+KOTXLyLUuHAsCHcwpBmp6eOzmcmLNB5bpjbZjCrCz\r\nkK2CiaPspVsSUVpv0d2pyFTYJKU7zm3hd65DD1+Anexvwa8U4e+DVhI89ls5\r\nVN1HDrCQ3ssUcri92vX7x2bWcj6W4gjVA8hmi8hYOEIwODzzy0xSZNyLXrGy\r\nX1zi+fbJtwLzAzH7ii95qZGm5aNAVs3dtpHQcpXX9I+x5UU2LDBGO2KD58F0\r\n+G2CbWKWjraPSDtqFzkt/Je/93x/wPQ5Clxuxs8NZmN3VbT8r9mYC7jsW4M6\r\nKdO6ifFLxSxlUe49JzJtPVSLdkPOk1U5+KKf3bq5WWtsKeAx57JkkGAaftF6\r\niMWx5GP0cyIm4BEyhYcFGpptkVZiEnwJC5oJrFXvqPjZNDBnzLejIKk4HnOs\r\nA9ktG0mkHqsFtbneJeWdinUwuohjsOv5s6I=\r\n=ALLP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"swiss-social-archives","email":"archival-iiif@sozialarchiv.ch"},"directories":{},"maintainers":[{"name":"kerim1","email":"kerim.meijer@di.huc.knaw.nl"},{"name":"swiss-social-archives","email":"archival-iiif@sozialarchiv.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/presentation-migrator_1.0.1_1662663314340_0.46876512455221864"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-25T11:20:32.910Z","1.0.0":"2021-09-25T11:20:33.113Z","modified":"2022-09-08T18:55:14.643Z","1.0.1":"2022-09-08T18:55:14.523Z"},"maintainers":[{"name":"kerim1","email":"kerim.meijer@di.huc.knaw.nl"},{"name":"swiss-social-archives","email":"archival-iiif@sozialarchiv.ch"}],"description":"Migrates manifests to other IIIF versions.","homepage":"https://github.com/archival-IIIF/presentation-migrator#readme","keywords":["IIIF"],"repository":{"type":"git","url":"git+https://github.com/archival-IIIF/presentation-migrator.git"},"author":{"name":"Archival IIIF"},"bugs":{"url":"https://github.com/archival-IIIF/presentation-migrator/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <a href=\"https://material-ui.com/\" rel=\"noopener\" target=\"_blank\"><img width=\"150\" src=\"https://archival-iiif.github.io/logos/iiif.png\" alt=\"Material-UI logo\"></a>\n</p>\n\n<h1 align=\"center\">Archival IIIF presentation migrator</h1>\n\n<div align=\"center\">Migrates manifests to other IIIF versions</div>\n\n\n## Supported migration\n\n* Presentation API 3.0 -> Presentation API 2.1 (not feature complete)\n\n## Installation\n\npresentation-builder is available as an [npm package](https://www.npmjs.com/package/@archival-iiif/presentation-migrator).\n\n```sh\n// with npm\nnpm -i @archival-iiif/presentation-migrator\n\n// with yarn\nyarn add @archival-iiif/presentation-migrator\n```\n\n## Usage\n\n**Code**\n\n```typescript\nimport {Manifest, Collection} from \"@archival-iiif/presentation-builder\";\nimport {migrateManifestV3ToV2, migrateCollectionV3ToV2, igrateManifestOrCollectionV3ToV2} from \"@archival-iiif/presentation-migrator\";\n\nconst manifestV3 = new Manifest('https://example.org/iiif/book1/manifest', 'Book 1');\nlet manifestV2 = migrateManifestV3ToV2(m);\n// same result:\nmanifestV2 = migrateManifestOrCollectionV3ToV2(m);\n\nconst collectionV3 = new Collection(\n    'https://example.org/iiif/collection/top',\n    { \"en\": [ \"Collection for Example Organization\" ] }\n);\nconst collectionV2 = migrateCollectionV3ToV2(c);\n```\n\n## License\n\nThis software is released under the MIT license.\n","readmeFilename":"README.md"}