{"_id":"@adobe/asset-compute-xmp","_rev":"77-5dc747b7cbdef8139f1efcd3fffcb0f8","name":"@adobe/asset-compute-xmp","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@adobe/asset-compute-xmp","version":"1.0.0","keywords":["scripts","openwhisk","asset compute","library","adobe"],"author":{"name":"Adobe Inc."},"license":"Apache-2.0","_id":"@adobe/asset-compute-xmp@1.0.0","maintainers":[{"name":"manasmaji","email":"maji@adobe.com"},{"name":"rajarju","email":"rajarju@gmail.com"},{"name":"spaliwal","email":"spaliwal@adobe.com"},{"name":"niekraaijmakers","email":"niekraaijmakers@gmail.com"},{"name":"grubyak","email":"artur.kudlacz@gmail.com"},{"name":"patrick.fauchere","email":"patrick.fauchere@gmail.com"},{"name":"pheenomenon","email":"pheenomenon@gmail.com"},{"name":"camagic","email":"cacheung@adobe.com"},{"name":"mohiaror","email":"mohiaror@adobe.com"},{"name":"brenthosie","email":"brenthosie@gmail.com"},{"name":"indra2gurjar","email":"indra2gurjar@gmail.com"},{"name":"samfung","email":"sam.fung@gmail.com"},{"name":"rymorale","email":"ryanmorales@gmail.com"},{"name":"amadt5","email":"amadt5@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"mirea","email":"mirea@adobe.com"},{"name":"dgrossen","email":"dangrossen@gmail.com"},{"name":"tmathern","email":"mathern@adobe.com"},{"name":"dstrangio","email":"deirdra.strangio@gmail.com"},{"name":"addb","email":"arjun.d.bhadra@gmail.com"},{"name":"jdelbick","email":"jamie.delbick@gmail.com"},{"name":"sbenedicadb","email":"sbenedic@adobe.com"},{"name":"jasonwaters","email":"watersj@gmail.com"},{"name":"choffmann-adobe","email":"choffman@adobe.com"},{"name":"bgaurav","email":"FINDGAURAV@GMAIL.COM"},{"name":"sirugh","email":"stephenrugh@gmail.com"},{"name":"czerneck","email":"czerneck@adobe.com"},{"name":"sangeetha.krishnan","email":"sangeetha5491@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dompuiu","email":"dompuiu@gmail.com"},{"name":"bglowacki","email":"bartosz.glow@gmail.com"},{"name":"ronen","email":"ronen@barzel.org"},{"name":"fmeschbe","email":"fmeschbe@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"msagolj","email":"msagolj@adobe.com"},{"name":"richardhand","email":"pid90611@adobe.com"},{"name":"jckautzmann","email":"jkautzma@adobe.com"},{"name":"andreea_dracea","email":"andreeadracea@yahoo.com"},{"name":"bpauli","email":"mail@bpauli.de"},{"name":"vladbailescu","email":"vlad@bailescu.ro"},{"name":"mfrisbey","email":"mark_f79@hotmail.com"},{"name":"himar","email":"himar@adobe.com"},{"name":"bbythewa","email":"bbythewa@adobe.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"jianliao79","email":"jian.liao@gmail.com"},{"name":"ibaratz","email":"ibaratz@adobe.com"},{"name":"alexkli","email":"alexander@klimetschek.de"},{"name":"meryllblanchet","email":"meryll@adobeio.com"},{"name":"moritzraho","email":"raho.mr@gmail.com"},{"name":"justinedelson","email":"justin@justinedelson.com"},{"name":"icaraps","email":"icaraps@hotmail.com"},{"name":"ashryan","email":"sayhi@ashryan.io"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"nporter-adbe","email":"nporter@adobe.com"},{"name":"aaronius","email":"aaron@aaronhardy.com"},{"name":"hirenoble","email":"hirenanandshah@outlook.com"},{"name":"benjamind","email":"ben@delarre.net"},{"name":"yoshikinoko","email":"yoshikinoko@gmail.com"},{"name":"goya","email":"brettrudd@gmail.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"purplecabbage","email":"purplecabbage@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"kerrishotts","email":"kerrishotts@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"aemsites","email":"meyer@adobe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"jfkhoury","email":"jfkhoury@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"target-admin","email":"ciocanu@adobe.com"},{"name":"adobe-behance","email":"sedunn@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"}],"homepage":"https://github.com/adobe/asset-compute-xmp#readme","bugs":{"url":"https://github.com/adobe/asset-compute-xmp/issues"},"dist":{"shasum":"21132b45255d75c4cca99be0e45dd41a25b57dbb","tarball":"https://registry.npmjs.org/@adobe/asset-compute-xmp/-/asset-compute-xmp-1.0.0.tgz","fileCount":7,"integrity":"sha512-NUU2QkHOoJmDXAh98D/5BwBCRrTolTYq3lIMvBdIRUcd0r6mR69AjsNxynaPqU/+CPvO/ZZit4ng2PE8bjWkGQ==","signatures":[{"sig":"MEUCIEbkTpYtjCGcy7MUZ/Kjzz437xcXfHYJc7vJvIsroZJwAiEAwndPg5Liwtun1CK8mL9ePcOCFhA9rFlrsy6AE8GGMos=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1v6ACRA9TVsSAnZWagAAGYIQAIUA0kkYBtwoSpnfKrNi\nRazos6ysuiqwjxB3IuGaLZzdjW/s24pMX0KIiUGbeaWKCKPzmrMlHmYekI7N\n4xZQuPwcCTXXW+TYCyAHufrpieFMpAB091fJUQ+Kx4e5nn/xCJUd4b8Gqm5C\n1H9imBOzq7Ohav/EIWgaMZOi/GTNIxqr0VDQFOXg0gBJmH76+77MzyobGJPH\n9pHTR8coGL/g220lFhLT/zZOn5fY+kdNFndnUy49RcbCqUYkEpOm+Mjbz3v9\no8jfGw/HHqH5QpfqD14zyhmA7jBh/N30EMehXOlhfI4l2JKuOddVeu8cu07V\n4RUeTbOcm99irw94eZmGhqIyPoy9Ka1FnxmjVu2rwMowKPyNnaEa9zgFKbMi\n+FhQ9aLpmCXaemReHmcL53iyHSIPyROn1rn0NDqX2rMooexwMscP4QX1uyHI\nrf7UUphSc+yHLaC34meiyJuyX2TVYpeUMPwzTNCjX89lfeENbkocVjwhFUm7\ngjHdHyJ58769M8xcLYQg8YjTbCj34CPr3sZUt4wHi5+i34c++0iqPJSt6QTv\nTs5lVsY6aUePd9q3Klkmh3JUywj5GAwtHK6l5dww2yEq+Bn8Dr4N9bRZy+GE\ngY/RUomJLsjDxlB5xM7GnCTU35Rcttz/KVp5aadr9fdkD0HC7rGUHJzFwzd6\nWP+M\r\n=m1Du\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","mocha":{"file":"test/logfile.setup.js"},"gitHead":"4087a14065a51d19f2f40bd4986d28e812542e6f","scripts":{"test":"nyc -r=text -r=lcov mocha test --file test/logfile.setup.js --recursive --exit","beautify":"eslint ./ --fix","posttest":"eslint ./ && license-checker --summary && ./node_modules/lockfile-lint/bin/lockfile-lint.js --path package-lock.json —type npm --allowed-hosts npm artifactory.corp.adobe.com --allowed-schemes \"https:\" \"file:\" --empty-hostname true","report-coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","semantic-release":"semantic-release"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"repository":{"url":"git+https://github.com/adobe/asset-compute-xmp.git","type":"git"},"_npmVersion":"6.14.8","description":"Metadata XMP serialization used by custom Adobe Asset Compute serverless actions","directories":{},"_nodeVersion":"12.18.3","dependencies":{"isobject":"^4.0.0","valid-url":"^1.0.9","xmlbuilder2":"^2.3.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","clone":"^2.1.2","mocha":"^8.1.1","eslint":"^7.7.0","codecov":"^3.7.2","fs-extra":"^9.0.1","lockfile-lint":"^4.3.7","license-checker":"^25.0.1","semantic-release":"^17.1.1","@semantic-release/git":"^9.0.0","conventional-changelog-eslint":"^3.0.8","@adobe/eslint-config-asset-compute":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/asset-compute-xmp_1.0.0_1598552308657_0.19067551662260218","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-08-27T18:18:28.656Z","modified":"2026-10-01T01:32:40.356Z","1.0.0":"2020-08-27T18:18:28.794Z"},"bugs":{"url":"https://github.com/adobe/asset-compute-xmp/issues"},"author":{"name":"Adobe Inc."},"license":"Apache-2.0","homepage":"https://github.com/adobe/asset-compute-xmp#readme","keywords":["scripts","openwhisk","asset compute","library","adobe"],"repository":{"url":"git+https://github.com/adobe/asset-compute-xmp.git","type":"git"},"description":"Metadata XMP serialization used by custom Adobe Asset Compute serverless actions","maintainers":[{"email":"mabecker@adobe.com","name":"marbec"},{"email":"tripod@bocanegra.ch","name":"tripod"},{"email":"garthdb@gmail.com","name":"garthdb"},{"email":"lazdnet@gmail.com","name":"lazd"},{"email":"grp-opensourceoffice@adobe.com","name":"adobe-admin"},{"email":"patrickfulton@gmail.com","name":"patrickfulton"},{"email":"lars@trieloff.net","name":"trieloff"},{"email":"krisnye@gmail.com","name":"krisnye"},{"email":"dcpfsdk@adobe.com","name":"dcpfsdk"},{"email":"natebaldwindesign@gmail.com","name":"natebaldwin"},{"email":"devongovett@gmail.com","name":"devongovett"},{"email":"danniintheus@gmail.com","name":"aspro83"},{"email":"symanovi@adobe.com","name":"symanovi"},{"email":"dominique.pfister@gmail.com","name":"dpfister"},{"email":"sg@adobe.com","name":"stefan-guggisberg"},{"email":"npm@rofe.com","name":"rofe"},{"email":"kptdobe@gmail.com","name":"kptdobe"},{"email":"halls@adobe.com","name":"adobehalls"},{"email":"bradjohn@adobe.com","name":"fullcolorcoder"},{"email":"djaeggi@adobe.com","name":"djaeggi"},{"email":"dylandepass@gmail.com","name":"dylandepass"},{"email":"mhaack@adobe.com","name":"mhaack"},{"email":"amol@adobe.com","name":"amol-anand"},{"email":"stopp@adobe.com","name":"stopp-adobe"},{"email":"namarora@adobe.com","name":"namarora"},{"email":"doten@adobe.com","name":"doten"},{"email":"schmidt@adobe.com","name":"duh_schmidt"},{"email":"astha.bhargava23@gmail.com","name":"asthabh23"},{"email":"aljoseph@adobe.com","name":"aljoseph"},{"email":"zouhir.dahbi@outlook.com","name":"zdahbi"},{"email":"tuicu@adobe.com","name":"tuicu"},{"email":"fmeschbe@adobe.com","name":"fmeschbe"}],"readme":"[![Version](https://img.shields.io/npm/v/@adobe/asset-compute-xmp.svg)](https://npmjs.org/package/@adobe/asset-compute-xmp)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![codecov](https://codecov.io/gh/adobe/asset-compute-xmp/branch/master/graph/badge.svg)](https://codecov.io/gh/adobe/asset-compute-xmp)\n[![Travis](https://travis-ci.com/adobe/asset-compute-xmp.svg?branch=master)](https://travis-ci.com/adobe/asset-compute-xmp)\n\n- [asset-compute-xmp](#asset-compute-xmp)\n  - [Installation](#installation)\n  - [API Details](#api-details)\n    - [Limitations](#limitations)\n    - [Serialize simple name/value pairs](#serialize-simple-namevalue-pairs)\n    - [Serialize an ordered sequence of values](#serialize-an-ordered-sequence-of-values)\n    - [Serialize an unordered set of values](#serialize-an-unordered-set-of-values)\n    - [Serialize a nested structure](#serialize-a-nested-structure)\n  - [License and Contributing Guidelines](#license-and-contributing-guidelines)\n\n# asset-compute-xmp\n\nMetadata XMP serialization used by custom Adobe Asset Compute serverless actions.\n\n## Installation\n\n```bash\nnpm install @adobe/asset-compute-xmp\n```\n\n## API Details\n\n### Limitations\n\n- Alternative arrays, `rdf:Alt`, are not supported\n- Nested arrays are not supported\n- Qualifiers, including `xml:lang`, are not supported\n- Resource references are not supported\n\n### Serialize simple name/value pairs\n\n```javascript\nconst { serializeXmp } = require(\"@adobe/asset-compute-xmp\");\nconsole.log(serializeXmp({\n  \"ns1:key1\": true,\n  \"ns1:key2\": false,\n  \"ns1:key3\": new Date(),\n  \"ns1:key4\": 123,\n  \"ns1:key5\": \"text\",\n  \"ns1:key6\": \"http://www.adobe.com\"\n}, {\n  namespaces: {\n    ns1: \"https://example.com/schema/example\"\n  }\n}));\n```\n\n```xml\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:ns1=\"https://example.com/schema/example\">\n  <rdf:Description>\n    <ns1:key1>True</ns1:key1>\n    <ns1:key2>False</ns1:key2>\n    <ns1:key3>2020-08-26T17:38:29.991Z</ns1:key3>\n    <ns1:key4>123</ns1:key4>\n    <ns1:key5>text</ns1:key5>\n    <ns1:key6 rdf:resource=\"http://www.adobe.com\"/>\n  </rdf:Description>\n</rdf:RDF>\n```\n\n### Serialize an ordered sequence of values\n\n```javascript\nconst { serializeXmp } = require(\"@adobe/asset-compute-xmp\");\nconsole.log(serializeXmp({\n  \"ns1:key\": [ \"value1\", \"value2\", \"value3\" ]\n}, {\n  namespaces: {\n    ns1: \"https://example.com/schema/example\"\n  }\n}));\n```\n\n```xml\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:ns1=\"https://example.com/schema/example\">\n  <rdf:Description>\n    <ns1:key>\n      <rdf:Seq>\n        <rdf:li>value1</rdf:li>\n        <rdf:li>value2</rdf:li>\n        <rdf:li>value3</rdf:li>\n      </rdf:Seq>\n    </ns1:key>\n  </rdf:Description>\n</rdf:RDF>\n```\n\n### Serialize an unordered set of values\n\n```javascript\nconst { serializeXmp } = require(\"@adobe/asset-compute-xmp\");\nconsole.log(serializeXmp({\n  \"ns1:key\": [ \"value1\", \"value2\", \"value3\" ]\n}, {\n  namespaces: {\n    ns1: \"https://example.com/schema/example\"\n  },\n  xmpBags: [ \"ns1:key\" ]\n}));\n```\n\n```xml\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:ns1=\"https://example.com/schema/example\">\n  <rdf:Description>\n    <ns1:key>\n      <rdf:Bag>\n        <rdf:li>value1</rdf:li>\n        <rdf:li>value2</rdf:li>\n        <rdf:li>value3</rdf:li>\n      </rdf:Bag>\n    </ns1:key>\n  </rdf:Description>\n</rdf:RDF>\n```\n\n### Serialize a nested structure\n\n```javascript\nconst { serializeXmp } = require(\"@adobe/asset-compute-xmp\");\nconsole.log(serializeXmp({\n  \"ns1:key1\": {\n    \"ns1:key2\": \"value\"\n  }\n}, {\n  namespaces: {\n    ns1: \"https://example.com/schema/example\"\n  }\n}));\n```\n\n```xml\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:ns1=\"https://example.com/schema/example\">\n  <rdf:Description>\n    <ns1:key1>\n      <rdf:Description>\n        <ns1:key2>value</ns1:key2>\n      </rdf:Description>\n    </ns1:key1>\n  </rdf:Description>\n</rdf:RDF>\n```\n\n## License and Contributing Guidelines\n\n- [License](./LICENSE)\n- [Contributing Guildelines](./.github/CONTRIBUTING.md)\n","readmeFilename":"README.md"}