(name: string)
| 139 | } |
| 140 | |
| 141 | function encodePackageName(name: string): string { |
| 142 | // Encode scoped packages: @scope/name -> @scope%2Fname |
| 143 | if (name.startsWith('@')) { |
| 144 | return '@' + encodeURIComponent(name.slice(1)) |
| 145 | } |
| 146 | return encodeURIComponent(name) |
| 147 | } |
| 148 | |
| 149 | function packageToFilename(name: string): string { |
| 150 | return `${name}.json` |
no outgoing calls
no test coverage detected