@fugitivesclub/nft-cli
Version:
This CLI allow you to mint your NFT's
19 lines (18 loc) • 516 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.readNFT = void 0;
const tslib_1 = require("tslib");
const fs = (0, tslib_1.__importStar)(require("fs"));
const readNFT = async (metadataPath, imagePath) => {
const media = imagePath;
// Read metadata
const content = await fs.promises.readFile(metadataPath, {
encoding: 'utf-8',
});
const metadata = JSON.parse(content);
return {
metadata,
media,
};
};
exports.readNFT = readNFT;