1## Usage 2 3```javascript 4var assert = require('assert') 5var ranges = require('spdx-ranges') 6 7assert( 8 Array.isArray(ranges), 9 'module is an Array' 10) 11 12assert( 13 ranges.length > 0, 14 'the Array has elements' 15) 16 17assert( 18 ranges.every(function (e) { 19 return Array.isArray(e) 20 }), 21 'each Array element is an Array' 22) 23 24assert( 25 ranges.every(function (range) { 26 return range.every(function (element) { 27 return ( 28 typeof element === 'string' || 29 ( 30 Array.isArray(element) && 31 element.every(function (element) { 32 return typeof element === 'string' 33 }) 34 ) 35 ) 36 }) 37 }), 38 'elements of Array-elements are strings or Arrays of Strings' 39) 40``` 41 42## Licensing 43 44The Linux Foundation and its contributors license the SPDX standard under the terms of [the Creative Commons Attribution License 3.0 Unported (SPDX: "CC-BY-3.0")](http://spdx.org/licenses/CC-BY-3.0). "SPDX" is a United States federally registered trademark of the Linux Foundation. The authors of this package license their work under the terms of the MIT License. 45