npm install bpmn2neo4j
Download a sample digram.bpmn file here
import xmlToNeo4j from 'bpmn2neo4j'
// provide the bpmn diagram as input from *.bpmn file
const xml = '<xml>...</xml>'; // xml as string
const neo4jData = xmlToNeo4j(xml, '<neo4j-connection-string>', '<neo4j-username>', '<neo4j-password>');