npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

twx-parser

v1.7.0

Published

Library for parsing and querying TWX files for IBM BPM

Downloads

14

Readme

Build Status codecov npm

twx-parse

twx-parse is a library for parsing and querying TWX files for IBM BPM.

Motivation

Analyzing IBM BPM Process Applications and Toolkits is not easy when dealing with complex analysis. For example, if you have a toolkit shared by 3 applications, it is challenging to know which toolkit assets each application is actually using. This lack of visibility makes the change management process difficult and time consuming.

This tool aims to parse multiple TWX files and build a data structure that allows to easily discover dependencies, and also allows to easily query these applications and toolkits.

Getting Started

Installing

Use npm or yarn to install this library

npm install twx-parse

yarn install twx-parse

Quick Examples

To get started using the library you can use the only public method provided:

const twxParse = require('twx-parse')

...

// retrieve the workspace providing credentials. if the workspace does not
// exist, a new one will be created
const workspace = await twxParse.getWorkspace(workspaceName, password)

// add a new file to be processed
await workspace.addFile(filePath)

// retrieve all the snapshots (applications or toolkits)
const snapshots = await workspace.getSnapshots()
console.log(snapshots)
/* Output:
[{
  workspace: 'name1',
  snapshotId: '2064.1080ded6-d153-4654-947c-2d16fce170ed',
  appId: '2066.1b351583-e5cb-43b7-baee-340a63130ea7',
  branchId: '2063.0798815e-0346-4ef4-8946-ab4301c9f340',
  appShortName: '8.6.0.0',
  snapshotName: 'System Data',
  appName: 'TWSYS',
  branchName: 'Main',
  isToolkit: true,
  isObjectsProcessed: true
}, {
  workspace: 'name1',
  snapshotId: '2064.c7680890-5385-3f24-bbc9-20da937ac8c4',
  appId: '2066.aa12f1cb-4661-3bd0-a351-45649d179885',
  branchId: '2063.7e0d6e21-f74c-3542-9f77-1472b63c22f1',
  appShortName: 'SYSRC',
  snapshotName: '8.6.0.0',
  appName: 'Responsive Coaches',
  branchName: 'Main',
  isToolkit: true,
  isObjectsProcessed: true
},
...
]
*/

// retrieve all the objects (present in both applications or toolkits)
const objects = await workspace.getObjects()
console.log(objects)
/* Output:
[{
  workspace: 'name1',
  objectVersionId: 'bbe4cee0-85f5-3955-b9c8-7ebdc9e2d8f3',
  objectId: '1.c2d00e9e-9c34-3e08-9258-101bd61b964d',
  name: 'Default Responsive Human Service',
  type: '1',
  subtype: '10'
}, {
  workspace: 'name1',
  objectVersionId: '68222369-2914-4824-afa4-71bb4bdcbce7',
  objectId: '12.d8fa7561-8636-40a9-bd70-f45128bb7e54',
  name: 'BPMBOSaveFailedError',
  type: '12',
  subtype: null
},
...
]
*/

API

For the full API, please visit this page

Developing

PR as welcome to this project. If you have a new feature that you would like to see in the library, please open an issue for discussion before the PR.

Running Tests

To run the full test suite, simply run

npm test

To check for code style, run

npm run lint

Generating Documentation

Documentation for the project is done with jsdoc. If you update any code that requires documentation update, please do so and update the api.md file using the command

npm run docs

Versioning

This project follows the Semantic Versioning 2.0.0 guide. Version numbering is handled by the package semantic-release. Therefore, never update the version field in the package.json file.

Commit Messages

This project follows the Angular Commit Message Guidelines. To help creating compliant commit messages, please use the npm run commit command and follow the instructions.

Roadmap

To be defined...

Licence

The code in this project is licensed under MIT license.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!