Home
Getting Started
  • Fundamentals
  • Advanced
  • Fundamentals
  • Intermediate
  • Advanced
OM-Functions
  • FAQs
  • Glossary
  • Contributing
Changelog
Github
Home
Getting Started
  • Fundamentals
  • Advanced
  • Fundamentals
  • Intermediate
  • Advanced
OM-Functions
  • FAQs
  • Glossary
  • Contributing
Changelog
Github
  • Getting Started

    • Introduction
    • Quickstart
    • Installation

Installation

To use Openmadness in your project, you need to install it first. You can install it using npm or yarn.

Prerequisites

To follow along with Openmadness, you should:

  • Basic knowledge of JavaScript (arrays, functions, etc.)

  • Node.js 18 +

  1. In your project directory, run the following command to install Openmadness using npm:
npm install openmadness  //npm

yarn add openmadness  //yarn
  1. Once the installation is complete, create a JavaScript file and import Openmadness:
import { omArray } from 'openmadness';
  1. Add the following code to your JavaScript file to test if Openmadness is installed correctly:
const array = omArray([1, 2, 3, 4]);
console.log(array.sum()); // Output: 10
  1. Run your JavaScript file using Node.js:
node your-file.js
  1. If Openmadness is installed correctly, you should see the following output in your console:
10
Edit this page on GitHub
Last Updated:: 7/11/25, 12:24 PM
Contributors: Dev-Liz
Prev
Quickstart