$ cnpm install ntid
NTIDs are IDs of the form Type[...]
where the string between the square brackets may contain other NTIDs or a URL-safe Base64 string. NTIDs are designed to be:
NTID comes with a command called ntid
that generates IDs. Install NTID globally with npm i -g ntid
and run:
$ ntid example
example[RY7ss1F2-Y7S0nvTbNBH73]
Takes a string denoting the type of NTID to generate and returns a new randomly generated NTID.
A compound NTID is made up of nested NTIDs. Like all NTIDs, it has its own type but instead of a randomly generated body, it contains nested NTIDs. The order of the nested NTIDs matches the order in which they appear in the given array, which makes them useful for directed edges.
A symmetric NTID is a compound ID that sorts its nested NTIDs in a consistent manner. This is useful for undirected edges, hence the symmetry.
Parses the type of the given NTID.
Copyright 2014 - 2016 © taobao.org |