lumrop is a versatile npm package that provides a collection of React components, hooks, and utilities designed to simplify and enhance development within the React ecosystem.
 
 
Go to file
Tudor Stanciu 75a40aba1f chore: update package version to 1.3.0 and modify dependencies
feat: add copyright notice to hooks and index files

fix: update test imports to use @testing-library/react

refactor: change TypeScript target from es5 to es6

chore: add ESLint configuration for TypeScript and React
2025-04-16 01:35:11 +03:00
src chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00
tests chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00
.eslintignore 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
.gitignore 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
.npmrc 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
.prettierrc 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
LICENSE chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00
README.md chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00
eslint.config.mjs chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00
jestconfig.json chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00
package-lock.json chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00
package.json chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00
tsconfig.json chore: update package version to 1.3.0 and modify dependencies 2025-04-16 01:35:11 +03:00

README.md

lumrop

Introduction

lumrop is a versatile npm package that provides a collection of React components, hooks, and utilities designed to simplify and enhance development within the React ecosystem. Whether you're working on personal projects or building for the public, lumrop offers tools to streamline your workflow.

Installation

Install the package using npm or yarn:

# with npm
npm install @flare/lumrop --registry https://lab.code-rove.com/public-node-registry

# with yarn
yarn add @flare/lumrop --registry https://lab.code-rove.com/public-node-registry

Usage

Import and use the provided hooks and utilities in your React project:

import { useWindowSize, useLink, useTitle } from "@flare/lumrop";

// Example usage
function App() {
  const { width, height } = useWindowSize();
  useTitle("Welcome to Lumrop");

  return (
    <div>
      <h1>
        Window Size: {width}x{height}
      </h1>
    </div>
  );
}

Unit Testing

Unit tests are written using Jest, a powerful testing framework by Facebook.
Test files are identified by the *.test.ts extension. To run all tests, use the following command:

npm test

Changelog

1.3.0

  • Upgraded dependencies to their latest versions.
  • Refactored codebase to use ES6 modules and syntax.

v1.2.0

  • Rebranded the package from react-hooks to lumrop.

v1.1.1

  • Included the src directory in the npm package.

v1.1.0

  • Migrated the project to TypeScript.
  • Added unit testing with Jest.

v1.0.1

  • Minor updates to the domain and README.

v1.0.0

  • Initial release of the react-hooks package.