I'm trying to run enroll and register using Node.js's fabric-ca-client module, but I'm confused with the API docs. Can you guys help to convert the command to Node.js?
./bin/fabric-ca-client enroll -d -u https://admin:adminpw@example.com:7056 \
--caname ca --tls.certfiles tls-ca-cert.pem;
./bin/fabric-ca-client register --caname ca --tls.certfiles tls-ca-cert.pem \
--id.name ordereradmin --id.secret ordereradminpw \
--id.type user -u https://example.com:7056;
Also asked in stackoverflow