var assert = require('assert')
var ranges = require('spdx-ranges')
assert(
Array.isArray(ranges),
'module is an Array'
)
assert(
ranges.length > 0,
'the Array has elements'
)
assert(
ranges.every(function (e) {
return Array.isArray(e)
}),
'each Array element is an Array'
)
assert(
ranges.every(function (range) {
return range.every(function (element) {
return (
typeof element === 'string' ||
(
Array.isArray(element) &&
element.every(function (element) {
return typeof element === 'string'
})
)
)
})
}),
'elements of Array-elements are strings or Arrays of Strings'
)
-
Notifications
You must be signed in to change notification settings - Fork 1
list of SPDX standard license ranges
License
jslicense/spdx-ranges.js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
list of SPDX standard license ranges
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published