{"_id":"@bpmn-io/moddle-utils","_rev":"21-76ef5ca9adfda86c0a058e2e9c319c1c","name":"@bpmn-io/moddle-utils","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@bpmn-io/moddle-utils","version":"0.1.0","keywords":["moddle"],"author":{"url":"https://github.com/philippfromme","name":"Philipp Fromme"},"license":"MIT","_id":"@bpmn-io/moddle-utils@0.1.0","maintainers":[{"name":"skaiir-camunda","email":"valentin.serra@camunda.com"},{"name":"marstamm","email":"martin.stamm@camunda.com"},{"name":"beatrizmendes","email":"beatriz.mendes@camunda.com"},{"name":"bpmn-io-admin","email":"bpmnio@camunda.com"},{"name":"nikku","email":"git_nikku@nixis.de"},{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},{"name":"barmac","email":"maciejbarel@gmail.com"},{"name":"philippfromme","email":"philippfromme@outlook.com"},{"name":"maxtru","email":"maximilian.trumpf@camunda.com"}],"homepage":"https://github.com/bpmn-io/moddle-utils#readme","bugs":{"url":"https://github.com/bpmn-io/moddle-utils/issues"},"dist":{"shasum":"2dc98b4f86d0876a3d0de3463b9fd6b38a578a60","tarball":"https://registry.npmjs.org/@bpmn-io/moddle-utils/-/moddle-utils-0.1.0.tgz","fileCount":4,"integrity":"sha512-2hon5+Lv1MCRz/O6j3xaayTltQXjIu+JEqCIwgRJco5l9eqY3liHOR2eih0bDRjnVmGXC9nS/r2s46FiULxwNw==","signatures":[{"sig":"MEUCIBnCD+E6ZWqz8GgvF1mQoPzd83ksfO0B3uF2mmAbiHDDAiEArjrGvWguyctbSKk6/slwq6USFdk3WhEkvJUGqmOxj9Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiowhDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmAQ//W5T/e2fS1y+UtpWDt2eI2OwIiTh1Ow8tkKoaxvcW5wH119PW\r\nl0ENzt3fHdxiIx1jqNWpVYsDhfbeVIaPh2coOry/kN0CoQikdyzQ5jJVpOUu\r\nVkMY6C63LkzaLjyh1qPIaPBjewkodkxq8V9GJ8f12166vZc4J2AoJKiTDr7R\r\noQ6VL29neY11NWeG09/xb6DQh3/mGCagLrp2GgrM9ZVWcopmpIeFaQo+/Wgg\r\norKHqQzzIkZi+RrGwgk32lVy0xaCiJSqYPyfabga8JkF9NpnDeTqrpwlJ1/S\r\nChLSIX7XSM0tGuF1OBjisxThAWnlhjAbWFAfLYvXmviotFwofD7lPr5j19Yv\r\nbFazxMs1fVFV9WqgHDsqeZumaZ/GwD+4Ns0wwwwlGnKtq52DHbxWMQv2icN5\r\nLeYTr13AHpreEY+zzhDhQkaGPiEnnmsZ53vDPP9Y3omWGkOhZ0liaz+VZl9w\r\nUtDRzAvGFfe9WTsDhFOfwSEqztzkGGlFrtpejUEUw3pgVus+g4mGGqeOOFoi\r\nM76xGqaDgUOgZ7PIL9/M8sK26PlmxiOtOJJ/oWV8exm9lbHqzIAQ6Cae4W27\r\nKzt2/UROTIr74bVX8Qw+PIUJlcw8smvQeUw5KBf2Vmq7qgnCMcg5L/mtm8pM\r\nzaakbJFujxilc1H+zkn3inYcT9vksv+L+pc=\r\n=Cxk7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"717b269c8f4947a410e50b3fd77ef9cf05695daa","scripts":{"all":"npm run lint && npm test","lint":"eslint .","test":"mocha test/**/*.spec.js","test:watch":"npm run test -- --watch"},"_npmUser":{"name":"philippfromme","email":"philippfromme@outlook.com"},"repository":{"url":"git+https://github.com/bpmn-io/moddle-utils.git","type":"git"},"_npmVersion":"6.14.13","description":"[![CI](https://github.com/bpmn-io/moddle-utils/workflows/CI/badge.svg)](https://github.com/bpmn-io/moddle-utils/actions?query=workflow%3ACI)","directories":{},"_nodeVersion":"14.17.0","dependencies":{"min-dash":"^3.8.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.5","mocha":"^5.2.0","eslint":"^7.32.0","bpmn-moddle":"^7.1.2","zeebe-bpmn-moddle":"^0.11.0","eslint-plugin-bpmn-io":"^0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/moddle-utils_0.1.0_1654851651640_0.6519338160865833","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@bpmn-io/moddle-utils","version":"0.2.0","keywords":["moddle"],"author":{"url":"https://github.com/philippfromme","name":"Philipp Fromme"},"license":"MIT","_id":"@bpmn-io/moddle-utils@0.2.0","maintainers":[{"name":"skaiir-camunda","email":"valentin.serra@camunda.com"},{"name":"marstamm","email":"martin.stamm@camunda.com"},{"name":"beatrizmendes","email":"beatriz.mendes@camunda.com"},{"name":"bpmn-io-admin","email":"bpmnio@camunda.com"},{"name":"nikku","email":"git_nikku@nixis.de"},{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},{"name":"barmac","email":"maciejbarel@gmail.com"},{"name":"philippfromme","email":"philippfromme@outlook.com"},{"name":"maxtru","email":"maximilian.trumpf@camunda.com"}],"homepage":"https://github.com/bpmn-io/moddle-utils#readme","bugs":{"url":"https://github.com/bpmn-io/moddle-utils/issues"},"dist":{"shasum":"01ec547045d50a0bf27ce88502d79b4d3fc458c1","tarball":"https://registry.npmjs.org/@bpmn-io/moddle-utils/-/moddle-utils-0.2.0.tgz","fileCount":3,"integrity":"sha512-X6+z5QqI50YYer6dxnQ7YqU+e0mK5YzmFbiR5vycQdlXgOV8H4YtGglV0O0D7rMfV3LjouRe2BdrWEIvWrQgxg==","signatures":[{"sig":"MEUCIQCdOzI+45LvxJI/mOHbqRX7XI92gZ1tKZ0yMVc/ToPt0wIgcRLRT+Ixw2Ns6Jedf0M2Ckx143tB7mpYp/7AyKmUT6s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6264},"main":"index.js","gitHead":"e78b93a66a889e16cf31868a8872935014406622","scripts":{"all":"npm run lint && npm test","lint":"eslint .","test":"mocha test/**/*.spec.js","test:watch":"npm run test -- --watch"},"_npmUser":{"name":"nikku","email":"git_nikku@nixis.de"},"repository":{"url":"git+https://github.com/bpmn-io/moddle-utils.git","type":"git"},"_npmVersion":"8.19.2","description":"[![CI](https://github.com/bpmn-io/moddle-utils/workflows/CI/badge.svg)](https://github.com/bpmn-io/moddle-utils/actions?query=workflow%3ACI)","directories":{},"_nodeVersion":"16.18.0","dependencies":{"min-dash":"^4.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.5","mocha":"^5.2.0","eslint":"^7.32.0","bpmn-moddle":"^8.0.1","zeebe-bpmn-moddle":"^0.19.0","eslint-plugin-bpmn-io":"^0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/moddle-utils_0.2.0_1686587033893_0.5938166083350185","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@bpmn-io/moddle-utils","version":"0.2.1","keywords":["moddle"],"author":{"url":"https://github.com/philippfromme","name":"Philipp Fromme"},"license":"MIT","_id":"@bpmn-io/moddle-utils@0.2.1","maintainers":[{"name":"skaiir-camunda","email":"valentin.serra@camunda.com"},{"name":"marstamm","email":"martin.stamm@camunda.com"},{"name":"beatrizmendes","email":"beatriz.mendes@camunda.com"},{"name":"bpmn-io-admin","email":"bpmnio@camunda.com"},{"name":"nikku","email":"git_nikku@nixis.de"},{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},{"name":"barmac","email":"maciejbarel@gmail.com"},{"name":"philippfromme","email":"philippfromme@outlook.com"},{"name":"maxtru","email":"maximilian.trumpf@camunda.com"}],"homepage":"https://github.com/bpmn-io/moddle-utils#readme","bugs":{"url":"https://github.com/bpmn-io/moddle-utils/issues"},"dist":{"shasum":"5542d0493a733e7d87c269b0ae3481b858d870d5","tarball":"https://registry.npmjs.org/@bpmn-io/moddle-utils/-/moddle-utils-0.2.1.tgz","fileCount":4,"integrity":"sha512-iv9zwk7PEGupSq9bkVZNFL0ZmoJLHExlUcjsiYx200Nh3a5mH9BHXF+PLaSaiE4882KVEirklpWf3oQLAmShSA==","signatures":[{"sig":"MEYCIQD/5j9BMCBv0QaCNgSy6GMJOy2FxeA2VgLTci1xfz1cZQIhANRgsQa7WTpIJYk7W8XumavEN79BT+i9VfqCQ5RilOg0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7350},"main":"index.js","gitHead":"461d53d1923a175a2cada113b2f02aec4b07e8f3","scripts":{"all":"npm run lint && npm test","lint":"eslint .","test":"mocha test/**/*.spec.js","test:watch":"npm run test -- --watch"},"_npmUser":{"name":"barmac","email":"maciejbarel@gmail.com"},"repository":{"url":"git+https://github.com/bpmn-io/moddle-utils.git","type":"git"},"_npmVersion":"8.19.4","description":"[![CI](https://github.com/bpmn-io/moddle-utils/workflows/CI/badge.svg)](https://github.com/bpmn-io/moddle-utils/actions?query=workflow%3ACI)","directories":{},"_nodeVersion":"16.20.0","dependencies":{"min-dash":"^4.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.5","mocha":"^5.2.0","eslint":"^7.32.0","bpmn-moddle":"^8.0.1","zeebe-bpmn-moddle":"^0.19.0","eslint-plugin-bpmn-io":"^0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/moddle-utils_0.2.1_1689574573548_0.41430737678755336","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@bpmn-io/moddle-utils","version":"0.3.0","keywords":["moddle"],"author":{"url":"https://github.com/philippfromme","name":"Philipp Fromme"},"license":"MIT","_id":"@bpmn-io/moddle-utils@0.3.0","maintainers":[{"name":"bpmn-io-admin","email":"bpmnio@camunda.com"},{"name":"nikku","email":"git_nikku@nixis.de"},{"name":"barmac","email":"maciejbarel@gmail.com"},{"name":"philippfromme","email":"philippfromme@outlook.com"},{"name":"maxtru","email":"maximilian.trumpf@camunda.com"},{"name":"skaiir-camunda","email":"valentin.serra@camunda.com"},{"name":"vsgoulart","email":"vinicius@vsgoulart.com"},{"name":"jarekdanielak","email":"jarek.danielak@camunda.com"},{"name":"alekseymanetov","email":"alekseyManetov@gmail.com"},{"name":"simon-steinruecken-camunda","email":"simon.steinruecken@camunda.com"}],"homepage":"https://github.com/bpmn-io/moddle-utils#readme","bugs":{"url":"https://github.com/bpmn-io/moddle-utils/issues"},"dist":{"shasum":"8600e4fb4319100377d1452a5f6336660b9c1db2","tarball":"https://registry.npmjs.org/@bpmn-io/moddle-utils/-/moddle-utils-0.3.0.tgz","fileCount":4,"integrity":"sha512-0kz2PKfjIH3XFtO9Koxh7jV8e1DWWs4rgp0IczhJgluoRHf9Jhq8zX1H3wGJu6+lpg1Rkzc6YW1ezKz+2K8wTg==","signatures":[{"sig":"MEUCICJK/NRErHOf4br4PPVOHoBW8RYCI7YKs39zBeDSmFauAiEA6UHgE0GqYMe2o6yNT7BkrHnbVHON/QY7zfIpajuoybA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7351},"main":"index.js","type":"module","exports":{".":"./index.js","./package.json":"./package.json"},"gitHead":"30e00f7dfc76ad0a0ef9ad40cc28c80e0d5a5349","scripts":{"all":"npm run lint && npm test","lint":"eslint .","test":"mocha test","test:watch":"npm run test -- --watch"},"_npmUser":{"name":"nikku","email":"git_nikku@nixis.de"},"repository":{"url":"git+https://github.com/bpmn-io/moddle-utils.git","type":"git"},"_npmVersion":"11.6.2","description":"[![CI](https://github.com/bpmn-io/moddle-utils/workflows/CI/badge.svg)](https://github.com/bpmn-io/moddle-utils/actions?query=workflow%3ACI)","directories":{},"_nodeVersion":"24.11.1","dependencies":{"min-dash":"^5.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^6.2.2","mocha":"^11.7.5","eslint":"^9.39.2","bpmn-moddle":"^10.0.0","zeebe-bpmn-moddle":"^1.12.0","eslint-plugin-bpmn-io":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/moddle-utils_0.3.0_1770116096338_0.525070712844081","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2022-06-10T09:00:51.582Z","modified":"2026-07-08T15:59:12.862Z","0.1.0":"2022-06-10T09:00:51.803Z","0.2.0":"2023-06-12T16:23:54.088Z","0.2.1":"2023-07-17T06:16:13.728Z","0.3.0":"2026-02-03T10:54:56.491Z"},"bugs":{"url":"https://github.com/bpmn-io/moddle-utils/issues"},"author":{"url":"https://github.com/philippfromme","name":"Philipp Fromme"},"license":"MIT","homepage":"https://github.com/bpmn-io/moddle-utils#readme","keywords":["moddle"],"repository":{"url":"git+https://github.com/bpmn-io/moddle-utils.git","type":"git"},"description":"[![CI](https://github.com/bpmn-io/moddle-utils/workflows/CI/badge.svg)](https://github.com/bpmn-io/moddle-utils/actions?query=workflow%3ACI)","maintainers":[{"email":"bpmnio@camunda.com","name":"bpmn-io-admin"},{"email":"git_nikku@nixis.de","name":"nikku"},{"email":"maciejbarel@gmail.com","name":"barmac"},{"email":"philippfromme@outlook.com","name":"philippfromme"},{"email":"maximilian.trumpf@camunda.com","name":"maxtru"},{"email":"valentin.serra@camunda.com","name":"skaiir-camunda"},{"email":"vinicius@vsgoulart.com","name":"vsgoulart"},{"email":"ali.barin53@gmail.com","name":"barinali"},{"email":"ev.bilske@camunda.com","name":"ev-camunda"},{"email":"jarek.danielak@camunda.com","name":"jarekdanielak"},{"email":"alekseyManetov@gmail.com","name":"alekseymanetov"}],"readme":"# @bpmn-io/moddle-utils\n\n[![CI](https://github.com/bpmn-io/moddle-utils/workflows/CI/badge.svg)](https://github.com/bpmn-io/moddle-utils/actions?query=workflow%3ACI)\n\nUtils for [moddle](https://github.com/bpmn-io/moddle). 🛠️\n\n# API\n\n## `getPath`\n\n```javascript\nimport { getPath } from '@bpmn-io/moddle-utils';\n\n// global\ngetPath(moddleElement); // [ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ]\n\n// local\ngetPath(moddleElement, parentModdleElement); // [ 'extensionElements', 'values', 0 ]\n\n// $parent === undefined\nconst task = moddle.create('bpmn:Task');\n\ngetPath(task); // null\n\n// null\ngetPath(null); // null\n```\n\n## `pathConcat`\n\n```javascript\nimport { pathConcat } from '@bpmn-io/moddle-utils';\n\npathConcat([ 'foo', 'bar' ], 'baz'); // [ 'foo', 'bar', 'baz' ]\n\n// null\npathConcat([ 'foo', 'bar' ], null); // null\n```\n\n## `pathEquals`\n\n```javascript\nimport { pathEquals } from '@bpmn-io/moddle-utils';\n\n// default separator\npathEquals('extensionElements.values.0.type', 'extensionElements.values.0.type'); // true\n\npathEquals([ 'extensionElements', 'values', 0 ], [ 'extensionElements', 'values', 0 ]); // true\n\n// custom separator\npathEquals('extensionElements-values-0-type', 'extensionElements-values-0-type', '-'); // true\n\n// null\npathEquals(null, [ 'foo' ]); // false\n```\n\n## `parsePath`\n\n```javascript\nimport { parsePath } from '@bpmn-io/moddle-utils';\n\n// default separator\nparsePath('rootElements.0.flowElements.0.extensionElements.values.0.type'); // [ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ]\n\n// custom separator\nparsePath('rootElements-0-flowElements-0-extensionElements-values-0-type', '-'); // [ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ]\n\n// null\nparsePath(null); // null\n```\n\n## `stringifyPath`\n\n```javascript\nimport { stringifyPath } from '@bpmn-io/moddle-utils';\n\n// default separator\nstringifyPath([ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ]); // 'rootElements.0.flowElements.0.extensionElements.values.0.type'\n\n// custom separator\nstringifyPath([ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ], '-'); // 'rootElements-0-flowElements-0-extensionElements-values-0-type'\n\n// null\nstringifyPath(null); // null\n```\n\n# Licence\n\nMIT","readmeFilename":"README.md"}