Socket
Socket
Sign inDemoInstall

bpmn-i18n-moddle

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bpmn-i18n-moddle

Moddle schema for bpmn-i18n


Version published
Weekly downloads
61
increased by84.85%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.2.0

  • FEAT: expose translation via bpmn:ExtensionElements#values

BREAKING CHANGES:

  • Access i18n:translations via bpmn:ExtensionElements#values

Readme

Source

bpmn-i18n-moddle

CI

Read and write BPMN 2.0 diagram files with bpmn-i18n extension in NodeJS and the browser.

Usage

import BpmnModdle from 'bpmn-moddle';
import BpmnI18nSchema from 'bpmn-i18n-moddle/resources/bpmn-i18n.json';

const moddle = new BpmnModdle({ i18n: BpmnI18nSchema });

const translation = moddle.create('i18n:Translation', { 'xml:lang': 'de', body: 'Startereignis' });

const extensionElements = moddle.create('bpmn:ExtensionElements', {
  values: [ translation ]
});

console.log(extensionElements.get('values'));

Resources

Building the Project

To run the test suite that includes XSD schema validation you must have a Java JDK installed and properly exposed through the JAVA_HOME variable.

Execute the tests via:

npm test

Perform a complete build of the application via:

npm run all

License

Use under the terms of the MIT license.

Keywords

FAQs

Last updated on 23 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc