trgraph
v1.1.2
Published
transformation graph
Downloads
56
Maintainers
Readme
Transformation Graph - TrGraph
Usage
const trGraph = new TrGraph();
const result = trGraph.objectTransform({
name: "Test"
}, {
name: ["utf8-bytes", "bytes-uint256"]
});
assert.equal(result, {
transformed: { name: 1415934836n },
linear: [1415934836n]
});
trGraph.transform(11, ["uin16-bytes"]) // Uint8Array(2) [ 0, 16 ]
Provided links
"utf8",
"base64",
"base32",
"base16",
"hex",
"base64url",
"base58",
"ascii",
"uint16",
"uint32",
"uint64",
"uint128",
"uint256",
"int16",
"int32",
"int64",
"int128",
"int256",
"float32",
"boolean",
"bytes",
"uint",
"isodate",
"unixtime",
"unixtime19",
"iso3166numeric",
"iso3166alpha2",
"iso3166alpha3",
"0xhex",
"bytes-uint",
"bytes-unixtime19",
"bytes-unixtime",
"bytes-uint16",
"bytes-uint32",
"bytes-uint64",
"bytes-uint128",
"bytes-uint256",
"uint-bytes",
"unixtime19-bytes",
"unixtime-bytes",
"uint16-bytes",
"uint32-bytes",
"uint64-bytes",
"uint128-bytes",
"uint256-bytes",
"bytes-int16",
"bytes-int32",
"bytes-int64",
"bytes-int128",
"bytes-int256",
"int16-bytes",
"int32-bytes",
"int64-bytes",
"int128-bytes",
"int256-bytes",
"bytes-isodate",
"bytes-utf8",
"bytes-base64",
"bytes-base64url",
"bytes-base32",
"bytes-base16",
"bytes-base58",
"bytes-ascii",
"bytes-hex",
"isodate-bytes",
"utf8-bytes",
"base64-bytes",
"base64url-bytes",
"base32-bytes",
"base16-bytes",
"base58-bytes",
"ascii-bytes",
"hex-bytes",
"utf8-boolean",
"ascii-boolean",
"boolean-utf8",
"boolean-ascii",
"boolean-uint",
"boolean-unixtime19",
"boolean-unixtime",
"boolean-uint16",
"boolean-uint32",
"boolean-uint64",
"boolean-uint128",
"boolean-uint256",
"boolean-int16",
"boolean-int32",
"boolean-int64",
"boolean-int128",
"boolean-int256",
"uint-boolean",
"unixtime19-boolean",
"unixtime-boolean",
"uint16-boolean",
"uint32-boolean",
"uint64-boolean",
"uint128-boolean",
"uint256-boolean",
"int16-boolean",
"int32-boolean",
"int64-boolean",
"int128-boolean",
"int256-boolean",
"utf8-uint",
"utf8-unixtime19",
"utf8-unixtime",
"utf8-uint16",
"utf8-uint32",
"utf8-uint64",
"utf8-uint128",
"utf8-uint256",
"utf8-int16",
"utf8-int32",
"utf8-int64",
"utf8-int128",
"utf8-int256",
"ascii-uint",
"ascii-unixtime19",
"ascii-unixtime",
"ascii-uint16",
"ascii-uint32",
"ascii-uint64",
"ascii-uint128",
"ascii-uint256",
"ascii-int16",
"ascii-int32",
"ascii-int64",
"ascii-int128",
"ascii-int256",
"uint-utf8",
"unixtime19-utf8",
"unixtime-utf8",
"uint16-utf8",
"uint32-utf8",
"uint64-utf8",
"uint128-utf8",
"uint256-utf8",
"int16-utf8",
"int32-utf8",
"int64-utf8",
"int128-utf8",
"int256-utf8",
"uint-ascii",
"unixtime19-ascii",
"unixtime-ascii",
"uint16-ascii",
"uint32-ascii",
"uint64-ascii",
"uint128-ascii",
"uint256-ascii",
"int16-ascii",
"int32-ascii",
"int64-ascii",
"int128-ascii",
"int256-ascii",
"utf8-float32",
"ascii-float32",
"float32-utf8",
"float32-ascii",
"mod.uint16",
"mod.uint32",
"mod.uint64",
"mod.uint128",
"mod.uint256",
"unixtime-uint",
"unixtime-unixtime19",
"unixtime-unixtime",
"unixtime-uint16",
"unixtime-uint32",
"unixtime-uint64",
"unixtime-uint128",
"unixtime-uint256",
"unixtime-int16",
"unixtime-int32",
"unixtime-int64",
"unixtime-int128",
"unixtime-int256",
"unixtime19-uint",
"unixtime19-unixtime19",
"unixtime19-unixtime",
"unixtime19-uint16",
"unixtime19-uint32",
"unixtime19-uint64",
"unixtime19-uint128",
"unixtime19-uint256",
"unixtime19-int16",
"unixtime19-int32",
"unixtime19-int64",
"unixtime19-int128",
"unixtime19-int256",
"uint-unixtime",
"uint16-unixtime",
"uint32-unixtime",
"uint64-unixtime",
"uint128-unixtime",
"uint256-unixtime",
"int16-unixtime",
"int32-unixtime",
"int64-unixtime",
"int128-unixtime",
"int256-unixtime",
"uint-unixtime19",
"uint16-unixtime19",
"uint32-unixtime19",
"uint64-unixtime19",
"uint128-unixtime19",
"uint256-unixtime19",
"int16-unixtime19",
"int32-unixtime19",
"int64-unixtime19",
"int128-unixtime19",
"int256-unixtime19",
"iso3166alpha2-utf8",
"iso3166alpha2-ascii",
"iso3166alpha3-utf8",
"iso3166alpha3-ascii",
"utf8-iso3166alpha2",
"ascii-iso3166alpha2",
"utf8-iso3166alpha3",
"ascii-iso3166alpha3",
"iso3166numeric-uint",
"iso3166numeric-unixtime19",
"iso3166numeric-unixtime",
"iso3166numeric-uint16",
"iso3166numeric-uint32",
"iso3166numeric-uint64",
"iso3166numeric-uint128",
"iso3166numeric-uint256",
"iso3166numeric-int16",
"iso3166numeric-int32",
"iso3166numeric-int64",
"iso3166numeric-int128",
"iso3166numeric-int256",
"uint-iso3166numeric",
"unixtime19-iso3166numeric",
"unixtime-iso3166numeric",
"uint16-iso3166numeric",
"uint32-iso3166numeric",
"uint64-iso3166numeric",
"uint128-iso3166numeric",
"uint256-iso3166numeric",
"int16-iso3166numeric",
"int32-iso3166numeric",
"int64-iso3166numeric",
"int128-iso3166numeric",
"int256-iso3166numeric",
"ascii-isodate",
"utf8-isodate",
"bytes-float32",
"float32-bytes",
"isodate-utf8",
"isodate-ascii",
"isodate-unixtime",
"isodate-unixtime19",
"unixtime-isodate",
"unixtime19-isodate",
"iso3166numeric-iso3166alpha2",
"iso3166numeric-iso3166alpha3",
"iso3166alpha2-iso3166numeric",
"iso3166alpha3-iso3166numeric",
"0xhex-bytes",
"bytes-0xhex"