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.

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

lukem, to javascript

Unless I'm missing something, in 2023 it's no longer possible to programmatically generate a MOBI file out of any other existing format (epub / HTML / PDF).

All solutions I found on #npm are thin wrappers around Amazon's kindlegen software last updated in 2010s.

And for some reason Amazon no longer offers kindlegen for download.

Another way of achieving that is using Calibre but that's not something I can do with my GUI-less CI/CD pipeline.

Sheesh.

#javascript #programming

wiredprairie, to programming
@wiredprairie@mastodon.social avatar

I'm enjoying the ease of use of the npm package 'postgres'. I'd tried a few other options that were a bit more "ORM" and not had great success.

It's not simple -- but that's good as it's feature set is definitely robust. Also works well with Typescript.

It took me about 45 minutes to swap from Kysely.

https://www.npmjs.com/package/postgres

#NodeJS #JavaScript #Deno #Postgresql #ECMAScript #TypeScript #NPM

DavidAnson, to node
@DavidAnson@mastodon.social avatar

I had a bad experience with npm-shrinkwrap.json recently. I read the documentation and took care, but it wasn’t enough. Based on that, my current opinion is that #npm #shrinkwrap is unusable for its intended purpose. That seems absurd and I am happy to learn what I’m doing wrong. Here’s a brief summary:

https://gist.github.com/DavidAnson/39b0eed160f7ce481c92e24a651b5d6f

thisismissem, to random
@thisismissem@hachyderm.io avatar

Hrm, #npm really needs a filter for "still maintained" because there's an utterly ridiculous number of packages that are just no longer maintained, which would be really good to filter from search results

anderseknert, to javascript
@anderseknert@hachyderm.io avatar

Most tools written in the #Javascript / #Node / #npm spehere seems to assume they'll be used exclusively in that context. That means installation instructions often describes adding a dependency to a package.json file, etc. But.. I just want to lint some CSS over here. You've built a perfectly capable standalone tool, so provide a binary, will you?

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 #node #npm

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

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

khalidabuhakmeh, to javascript
@khalidabuhakmeh@mastodon.social avatar

#JavaScript programming looking for #npm #packages

Confused Canadian GIF

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

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

rauschma, to javascript
@rauschma@fosstodon.org avatar

Is there a good linter for package.json (package exports, etc.)?

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

bp, to random

Import maps, the new browser standard, open up a world of possibilities for factoring and optimizing web pages and experiences. In this post, we explore one of them briefly: developing a static import-map-based #CDN to serve your #NPM packages. (https://bennypowers.dev/posts/import-map-cdn/)

jforseth210, to programming
@jforseth210@rcsocial.net avatar

Is there a language that handles dependencies well?

Python's virtual environments are a bit awkward but everything mostly works, I haven't played with Java build tools much, Javascript is a trainwreck. I've been happy with Dart, but haven't gotten into the weeds much. Same with rust, cargo seems nice, but I haven't played with it enough to know the pitfalls yet.

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?

voxpelli, to random
@voxpelli@mastodon.social avatar

Released a new very simple 25 lines of code module that validates messages in eg. a "commit-msg" : https://github.com/voxpelli/validate-conventional-commit

Great for use with eg to achieve on

nhoizey, to programming French
@nhoizey@mamot.fr avatar

Why would anyone use the path package from npm instead of Node’s path module?

https://www.npmjs.com/package/path

Just found it in one of my own projects, where I'm the only contributor… 😅

#Node #npm

⚓️ https://nicolas-hoizey.com/notes/2023/05/12/1/

stvfrnzl, to node
@stvfrnzl@mastodon.online avatar

Hey @astro, I tried running a brand new Astro project with but there seems to be an issue when installing the dependencies?

When running "npm run dev" it cannot find the "astro" command. When installing it with everything works fine and as expected (no error during dependency install). 🤷‍♂️

Screenshot of text prompts during the installation process of Astro with yarn. No errors, everything going smooth!

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”

🤯

#nodejs #npm

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

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  

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

  • 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