Download Fore_End/cpcn2/node_modules/dns-packet/classes.js from zxy0307/JavaWeb: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/zxy0307/JavaWeb/resolve/main/Fore_End/cpcn2/node_modules/dns-packet/classes.js
- Command line
-
hf download hf://zxy0307/JavaWeb/Fore_End/cpcn2/node_modules/dns-packet/classes.js
-
curl -L -o classes.js https://huggingface.co/zxy0307/JavaWeb/resolve/main/Fore_End/cpcn2/node_modules/dns-packet/classes.js
437 Bytes
| exports.toString = function (klass) { | |
| switch (klass) { | |
| case 1: return 'IN' | |
| case 2: return 'CS' | |
| case 3: return 'CH' | |
| case 4: return 'HS' | |
| case 255: return 'ANY' | |
| } | |
| return 'UNKNOWN_' + klass | |
| } | |
| exports.toClass = function (name) { | |
| switch (name.toUpperCase()) { | |
| case 'IN': return 1 | |
| case 'CS': return 2 | |
| case 'CH': return 3 | |
| case 'HS': return 4 | |
| case 'ANY': return 255 | |
| } | |
| return 0 | |
| } | |