rexxars / registry-auth-token

Get the auth token set for an npm registry
MIT License
34 stars 18 forks source link

Support reading yarn's config #27

Open silverwind opened 5 years ago

silverwind commented 5 years ago

yarn has the ability to set registry and tokens in its own config file and while I understand that most users are probably using .npmrc (yarn supports it), I think support for yarn's own config would be nice, maybe via a option {yarn: true}or similar.

Details on its config formats (v1 is a custom format, v2 will be yaml):

yarn v1: https://yarnpkg.com/lang/en/docs/cli/config/ yarn v2: https://yarnpkg.github.io/berry/configuration/yarnrc

I don't think the yarn v2 release is too far of so it might be an option to only support v2.

silverwind commented 5 years ago

Related: https://github.com/yarnpkg/berry/issues/264

rexxars commented 4 years ago

Happy to see a PR for this.

TenviLi commented 3 years ago

when update-notifier support private registry? i don't know why not merged the PRs

rexxars commented 3 years ago

when update-notifier support private registry? i don't know why not merged the PRs

I don't understand your question?