tanepiper, to node
@tanepiper@tane.codes avatar

Here's me trying to make sure we ship as secure as possible software, and there's someone who doesn't know how to use an npm ignore file to not ship their shitty docker files in their modules

tanepiper, to programming
@tanepiper@tane.codes avatar

Anyone else seeing more segfaults with 22 and

Going to have to go back to LTS as pipeline keep failing now when installing dependencies when using caching.

casraf, to typescript
nebyoolae, to node
@nebyoolae@masto.neb.host avatar

OK, I should really change all my projects that use #npm/#yarn to use #pnpm. If you barely use Node then it's probably not worth it, but for a webdev it now seems like a no-brainer.

linuxtldr, to linux
muhdiekuh, to node German
@muhdiekuh@ruhr.social avatar

Considering that every year we have a new ambitious replacement for #npm in the JavaScript world, @naderman and @seldaek apparently did a very good job when building and maintaining #composer for #php. Thanks a lot to you two and everyone else involved.

melroy, to random
@melroy@mastodon.melroy.org avatar

@lukekarrys How to buy you a coffee? I want to thank you for all your npm contributions, especially the maxSockets issue was a big deal to fix.

#npm #nodejs #maxSockets #socket #openconnections

hongminhee, to node
@hongminhee@todon.eu avatar

A pre-released version of #Fedify is now available on #npm!

https://www.npmjs.com/package/@fedify/fedify/v/0.5.0-dev.90

thisismissem, to programming
@thisismissem@hachyderm.io avatar

So I just saw a PR for a Node.js project, where the developer had used an npm command I'm unfamiliar with.. or at least, I didn't know of:

npm clean-install

Now, I'm familiar with npm ci, but I had absolutely no idea that the alias of npm clean-install existed. I didn't even realise that's what "ci" stood for "clean install”.

I always thought npm ci meant “the npm command you wanna run in CI environments”

🤯

nurkiewicz, to node
@nurkiewicz@fosstodon.org avatar

From https://blog.vlt.sh/blog/the-massive-hole-in-the-npm-ecosystem

  • a package's manifest is published independently from its tarball
    manifests are never fully validated against the tarball's contents
  • the ecosystem has broadly assumed the contents of the manifest & tarball are consistent
  • any tools or insights using the public registry are susceptible to exploitation/likely inaccurate
  • bad actors can hide malware & scripts in direct or transitive dependencies that go undetected

rauschma, to node
@rauschma@fosstodon.org avatar

1/ #npm package scripts: Windows vs. Unixes.

On macOS, I’m using these scripts:
"build": "npm run clean && tsc && npm run chmod",
"clean": "shx rm -rf ./dist/*",
"chmod": "chmod u+x ./dist/src/cmd.js",

Alas, the last script won’t work on Windows. What’s a good way to fix this?

cory, to 11ty
@cory@social.lol avatar

On the off chance anyone's using my #Eleventy tabler-icons plugin, I've split it out into two separate packages following their 3.0.1 release with the default implementation being the outlined variation (https://www.npmjs.com/package/@cdransf/eleventy-plugin-tabler-icons) and a separate package + shortcode for the filled variation (https://www.npmjs.com/package/@cdransf/eleventy-tabler-icons-filled) #NPM #JavaScript

aral, (edited ) to node
@aral@mastodon.ar.al avatar

If you’re doing an npm publish and you get the following error:

404 Not Found - PUT … <your package name@version> is not in this registry

It might be because you’re not logged in.

From terminal, run:

npm login  

rauschma, to node
@rauschma@fosstodon.org avatar

If an package has "exports", it can “self-reference” them via its package name. That’s useful for tests (which demo how importing packages would use the code).

// util_test.js
import {helperFunc} from 'my-package/misc/util.js';

https://nodejs.org/api/packages.html#self-referencing-a-package-using-its-name

paladin, to php German
@paladin@mastodon.online avatar

Your daily php-dev fitness:

composer selfupdate &amp;&amp; composer global update &amp;&amp; npm -g i npm npm-check-updates &amp;&amp; ncu -g

You are welcome ;)

anant, to node

based packages should mandatorily disclose whats the code size and what will be the nodes-modules folders count and total size. coz that combined together could what kind of liability i am getting myself into. issues arise from being unaware / ignorant about your liabilities mostly.

arendjr, to typescript

Received an invite for the https://jsr.io beta. This looks like a potential winner!

  • First-class @deno_land support
  • ESM-only
  • Built-in
  • Auto-doc generation from your TS sources
  • Seamless publishing from Actions
  • integration

Especially the part where you can just publish your TypeScript package without transpilation, and they handle /NPM compatibility is pretty big for IMO.

andre, to node
@andre@fedi.jaenis.ch avatar

I discovered a glitch in the Matrix!

A situation so unlikely I never considered it possible!

There is no package for generating (for resp. )!

The closest I could find is a parser from 2020.

Plus plenty of cryptocurrency garbage.

Excuse me, there's a framework waiting to be written 😸

(If you want to turn Markdown into Gemtext, recommendations go to a Python package)

ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar

How to protect your projects from the risks of deprecated npm packages
@sarahgooding @SocketSecurity
https://socket.dev/blog/the-risks-of-deprecated-npm-packages

Wuzzy, to node
@Wuzzy@cyberplace.social avatar

This is defintely the funniest headline of the week: "npm flooded with 748 packages that store movies" 🤣

Well, that's ONE creative way to use . 😉
Of course the movies are already deleted but still.

https://blog.sonatype.com/npm-flooded-with-748-packages-that-store-movies

phylum, to opensource

We continue to identify sophisticated threats originating from the use of software packages. This time the attacker uses a signed executable to initiate the attack chain through an package.

https://blog.phylum.io/npm-package-found-delivering-sophisticated-rat/

rpetrich, to node

I spelunked into steganography to create a new feature in https://www.deciduous.app/ that lets you reimport PNGs and SVGs of your decision trees to derive the underlying YAML.

It involves some neat tricks inspired by Macromedia Fireworks (RIP), so I wrote a blog post about it: https://rpetrich.com/blog/posts/steganographic-trees-deciduous/

Deciduous now also sports a CLI (so you can install it), and a bunch of lil things @shortridge and I added towards the goal of fast, easy, collaborative of potential failures.

joelanman, to node
@joelanman@hachyderm.io avatar

It's odd that this isn't built into #npm: update all packages to their latest versions

npx npm-check-updates -u  

https://www.npmjs.com/package/npm-check-updates

#nodeJS

richard, to node
@richard@fedia.social avatar

Is there a way (or a package) to show the installed versions of npm node modules (npm list) and what is defined in your package.json?

maartenballiauw, to node
@maartenballiauw@mastodon.online avatar

Everyone: "Hahaha, downloads the entire Internet!"

: "Hold my beer."

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