085d099040
Edited code to be ES6, added eslint and some basic linting configuration,(also includes husky for auto eslint before push)
11 lines
357 B
JavaScript
11 lines
357 B
JavaScript
module.exports = ({ value }) => {
|
|
console.log('>> check: isFreePublicClaim?')
|
|
if (
|
|
(value.stream.metadata.license.indexOf('Public Domain') !== -1 || value.stream.metadata.license.indexOf('Creative Commons') !== -1) &&
|
|
(!value.stream.metadata.fee || value.stream.metadata.fee.amount === 0)
|
|
) {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
}
|