I’m currently developing a development tool for myself (automating a lot of things around multi-machine testing). I would like to check whether an id from a manifest.json
is “valid”, i.e., if it fits the pattern generated on console.adobe.io.
For now, I check this with
/^[a-z0-9]+$/.test(manifest.id);
This fits all plugin IDs I currently have, but as I also want to release the tool (once finished) open-source and via npm, it would be great if someone from Adobe could confirm whether that’s valid, or if other chars than non-capital letters and digits can “exist” in an id.
Thank you very much in advance
A small description of what my tool does, if I’ve sparked someone’s curiosity
It allows for easy deployment of XD plugins onto multiple machines (even when on the development machine, XD isn’t installed) via a local network. It is therefore, so to speak, a multi-machine xdpm. It allows to develop on computer A (in my case Linux, meaning without XD installed) and then “auto-deploy” to macOS and Windows test machines, where they automatically get installed in XD and plugins automatically get reloaded on the test machine, allowing to quickly test plugins cross-platform… It also, potentially, could make it easy for IT Administration to easily install specific plugins on many machines.
All of that is based on NodeJS, works on all platforms and probably will, as all my Open-Source-Stuff, get released under the MIT-License.