DEV Community

Moritz Schramm
Moritz Schramm

Posted on

3 1

Published my first ever npm package

I did it!

I am JavaScript developer now for quite a while, but I never managed to create an npm package that made sense to me. In the last days, I helped my girlfriend to prepare for her exam in algorithms and data structures. Within that process, I implemented some sorting algorithm in Java and could not remember that I ever have
seen a sorting package for NodeJS where I could choose the algorithm.

So here it is.

node-sorter is my first ever npm package that allows you to sort on arrays and choose the algorithm you want!

Currently, I implemented:

  • Bubblesort
  • Insertionsort
  • Mergesort
  • Quicksort
  • Heapsort

The source code is available on GitHub and mostly tested. I would love hearing some feedback from you. :)

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (1)

Collapse
 
ben profile image
Ben Halpern

Woohoo!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs