arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Feature request: `attw --from-npm <pkg-name>` use `$(npm config get registry)` as its default registry
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Currently, for me, my npm registy is `https://registry.npmmirror.com`, not `https://registry.npmjs.org`. But running `attw --from-npm ` still fetch from the default npm registry. IMO, there are 2 solutions:
- allow `--registry` option for `attw` cmd.
- if not pass `--registry` option to `attw` cmd, use the result of `$(npm config get registry)` by default
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the `attw --from-npm ` command and how it selects the npm registry; compare that with the value returned by `npm config get registry`. The work is done when an explicit `--registry` is supported or, when omitted, the configured npm registry is used, with behavior verified for both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100