Buckets:
| const Range = require('../classes/range') | |
| const validRange = (range, options) => { | |
| try { | |
| // Return '*' instead of '' so that truthiness works. | |
| // This will throw if it's invalid anyway | |
| return new Range(range, options).range || '*' | |
| } catch (er) { | |
| return null | |
| } | |
| } | |
| module.exports = validRange | |
Xet Storage Details
- Size:
- 326 Bytes
- Xet hash:
- d9ec4d480a6f6f5c594bdab4d7edce08de9d87774972df1659a3a728fafb1c25
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.