How to use node-uuid

Comprehensive node-uuid code examples:

How to use node-uuid.v4:

731
732
733
734
735
736
737
738
739
740
var fileName, store, bufs, onEnd, onClose, onCancel, isClosing, pendingWrites, tick, gs, exists;
fileName = req.header('x-datakit-filename', null);

// Generate filename if neccessary, else check for conflict
if (fileName === null) {
  fileName = uuid.v4();
}

store = null;
bufs = [];

How to use node-uuid.v1:

548
549
550
551
552
553
554
555
556
557
  }).catch((e) => {
    console.log(e)
  })
},
getUuid() {
  return uuid.v1()
},
fetchTest() {
  // fetch原本方法的写法
  fetch(url, {