@dappnode/dappnodesdk
Version:
dappnodesdk is a tool to make the creation of new dappnode packages as simple as possible. It helps to initialize and publish in ethereum blockchain
15 lines • 651 B
JavaScript
/**
* Returns the image path for the given container name, version and architecture
* @param name Container name
* @param version Container version
* @param arch Container architecture in the format <os>/<arch>
* @returns Image path in the format <name>_<version>_<os>-<arch>.txz
*/
export const getImageFileName = (name, version, arch) => `${name}_${version}_${getArchTag(arch)}.txz`;
/**
* Returns the arch tag for the given architecture
* @param arch Architecture in the format <os>/<arch>
* @returns Arch tag in the format <os>-<arch>
*/
const getArchTag = (arch) => arch.replace(/\//g, "-");
//# sourceMappingURL=getImageFileName.js.map