| 22 | export const stderr = console.error.bind(console); |
| 23 | |
| 24 | export const isTruthy = obj => { |
| 25 | if (!obj) { |
| 26 | return false; |
| 27 | } |
| 28 | |
| 29 | return obj.constructor !== Object || Object.keys(obj).length > 0; |
| 30 | }; |
| 31 | |
| 32 | /** Remove a @scope/ prefix from a package name string */ |
| 33 | export const removeScope = name => name.replace(/^@.*\//, ''); |
no outgoing calls
no test coverage detected
searching dependent graphs…