nucliweb, to til
@nucliweb@webperf.social avatar

#TIL npm-merge-driver, a git merge driver for automatic merging of package-lock files

https://www.npmjs.com/package/npm-merge-driver

#NPM #Git

aeveltstra, to node
@aeveltstra@mastodon.social avatar

#NPM is a shitshow? Yessirreebob, it is. https://blog.vlt.sh/blog/the-massive-hole-in-the-npm-ecosystem

Just in case you wanted yet another reason to avoid Node in your JavaScript applications...

horuskol, to random
@horuskol@phpc.social avatar

Tiny wins:

My grid areas package for #TailwindCSS hit 10,000 weekly downloads this week. I hope that it is helpful for all those people.

https://github.com/savvywombat/tailwindcss-grid-areas

horuskol, (edited )
@horuskol@phpc.social avatar

#NPM downloads are a funny old metric, when you think about it.

A bunch of my downloads come from the fact that the package is a dependency of a couple of other popular packages/projects (amongst a very large number of smaller web apps and personal projects).

Factor in continuous integration and testing pipelines and "download" becomes more nebulous.

Still, 10k per week is more than I'd ever have thought when I built the thing.

voxpelli, to node
@voxpelli@mastodon.social avatar

Released a new module, a tiny little extension for helping with Chai assertion of non-posix paths: https://github.com/voxpelli/chai-posix-path

remixtures, to javascript Portuguese
@remixtures@tldr.nettime.org avatar

: "Oh, dear jest. It started as a fast test runner. But now it’s big and fat, it depends on some babel packages while the rest of your app is transpiled by a mix of esbuild and swc. Properly configuring it with ESM and TypeScript was a PhD science project.

You stop to count how many tools and parsers work on your codebase: TypeScript, esbuild, swc, babel, eslint, prettier, jest, webpack, rollup, terser. You are not sure if you missed any. You are not sure if you want to know. The level of pain is so high you forget about anything else."

https://frantic.im/javascript-gom-jabbar/

mikestreety, to php
@mikestreety@hachyderm.io avatar

I love having new staff who simply go "why is it like that...?"

When we moved to CI deployment (a couple of years ago), I created an image with composer, node and PHP so we can build and deploy our assets. It was 500mb.

I was questioned why it was so big and I didn't have a good answer. In the space of a couple of hours (thank you Docker, Alpine and Stack Overflow) I got it down to 100mb.

https://www.mikestreety.co.uk/blog/docker-image-wth-node-php-and-composer/

#php #docker #npm #composer

hywan, to node
@hywan@fosstodon.org avatar

The massive bug at the heart of the NPM ecosystem, https://blog.vlt.sh/blog/the-massive-hole-in-the-npm-ecosystem.

One more horror story about NPM 🤦.

#npm #JavaScript #ecosystem #security #safety

ArneBab, to node German
@ArneBab@rollenspiel.social avatar

I stopped feeling bad about #autotools files (configure.ac Makefile.am m4/*) when I realized how much noise a new maven package throws on your disk.
The main difference is: for #maven / #npm / #cargo / #gradle / #bazel / ... these are autogenerated.

That’s why I started #conf: https://hg.sr.ht/~arnebab/conf — auto-generation for autotools projects with conf new --lang <language>.

It needs more templates … contributions welcome!
(just send me a patch or a link to pull from)
#gnu #make #freesoftware

aalaap, to random
@aalaap@mastodon.social avatar

I don't really enjoy using #npx.

aalaap,
@aalaap@mastodon.social avatar

@noim I don't know. I mean, there's #yarn and #pnpm as #npm alternatives, so I'd be interested in seeing alternate takes on #npx.

aalaap,
@aalaap@mastodon.social avatar

@voxpelli @noim I don't use #yarn much personally, so I'm not sure about those features.

One of the things I don't like about #npx is that it takes the same amount of time as an #npm install, even if I have already run the npx command and downloaded (cached) the packages earlier. I've not found a way around this and I'm really hoping there was a way to run npx #offline.

schizanon, to microsoft
@schizanon@mas.to avatar

When I try to contact #NPMjs to recover access to my account, I get support messages from "npm@githubsupport.com". This makes a lot of sense because the quality of support is exactly as bad as I would expect from a #Microsoft owned organization.

#NPM == M$

The #JavaScript ecosystem has been bought!

#webDev #webDevelopment #nodeJS #node #js #frontEnd #backend #fullstack

jasongaylord, to webdev
schizanon, to webdev
@schizanon@mas.to avatar

Today's my first day trying .

Not sure how I feel about the built in and formatter yet; me and are besties, and I have gotten used to

Still gonna give it a try.

schizanon, to node
@schizanon@mas.to avatar
schizanon, to javascript
@schizanon@mas.to avatar

#Deno supports comments in it's config file!? How has this not caught on yet!?

https://deno.land/manual@v1.34.3/getting_started/configuration_file

#javaScript #npm #npmjs #nodejs #node #webDev

schizanon, to programming
@schizanon@mas.to avatar

I'm pissed at #NPM now, so it's time to find ways to undermine it out of spite.

So what's the move? Set all my dependencies to #ESModule urls? Is #SkyPack still a thing? Start using #Deno instead of #NodeJS?

#javaScript #npmpjs #node #webDev

schizanon, to node
@schizanon@mas.to avatar

has locked me out of my account so I can't publish any of my packages anymore. They still link to my GitHub repos though, so I'm replacing them all with Rick Astley videos.

If that doesn't work, I'll have to escalate to ascii art goatse.

ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar
dagb, to security Norwegian
@dagb@snabelen.no avatar
schizanon, to javascript
@schizanon@mas.to avatar

that have scripts that start server processes should also have scripts that kill those processes. i.e.:

"scripts": {
"start": "serve -p 3001 /public",
"kill": "kill-port 3001",
"dev": "npm run kill && npm start"
}

maybeanerd, to typescript
@maybeanerd@bumscode.com avatar

#typescript releases are always weird.

I'm happy that there's something new, but it also makes me angry to be reminded that it doesn't follow #semver.

voxpelli,
@voxpelli@mastodon.social avatar

@maybeanerd I kind of wish they would go with #CalVer instead of giving an appearance of #SemVer

I also wish #npm would support #CalVer

https://calver.org/

voxpelli, (edited ) to opensource
@voxpelli@mastodon.social avatar

Reminder: If you believe #opensource is not sustainable financially (no matter if that is correct or not) and you haven't signed up for @stackaid (or @tidelift if you're an enterprise) – then you're part of the problem, not the solution

GitHub Sponsors and @opencollective only support direct dependencies and not the long tail that makes up eg. the #npm ecosystem + they both require a fixed amount per project rather than a fixed monthly shared between all projects that you're supporting.

thisismissem, to AWS
@thisismissem@hachyderm.io avatar

Yikes: “The Register reports that malicious actors are exploiting expired #AWS S3 buckets to inject harmful code into legitimate #npm packages without needing to modify existing code.”

https://nodeweekly.com/link/141208/613138eaff

Franky47, to webdev

In the last month or so, NPM started 403'ing when publishing one of my monorepo's packages.

Turns out NPM will now outright refuse to publish packages containing the word keygen in it.

keygn or keygenn work fine. But the exact keygen word will fail to publish.

Spam/malware prevention? Maybe. I'd like to find an official explanation somewhere.

I guess I have to rename that package now. 😓

#webdev #npm

rasheedahmed, to opensource
@rasheedahmed@mastodon.social avatar

@skiff open sourced their cryptographic library "including useful functions for symmetric encryption, asymmetric encryption, hashing, and more. Contributions and suggestions are welcome!"

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines