node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


An example of creating a package

math_example package

The following functions are available in the math_example package.

  • addition adds two numbers and returns the result.

  • subtraction subtracts the second number from the first.

  • multiplication multiplies the first and second numbers and returns the result.

  • division divides the first number by the second number and returns the result.

  • fibonacci returns the nth fibonacci number