UNPKG

@prescott/geo-pattern

Version:

Create beautiful generative geometric background images from a string.

16 lines 508 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.adapter = exports.NodeAdapter = void 0; const crypto_1 = require("crypto"); const seed_1 = require("../seed"); class NodeAdapter { async createSeed(value) { const hash = crypto_1.createHash("sha1") .update(value, "utf8") .digest("hex"); return new seed_1.Seed(hash); } } exports.NodeAdapter = NodeAdapter; exports.adapter = new NodeAdapter(); //# sourceMappingURL=node.js.map