npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

business-eem-modules

v1.0.34

Published

React.js modules package for BusinessEEM - automatically installs react frontend modules

Readme

React BusinessEEM Modules

A package for React.js that automatically installs frontend modules into your BusinessEEM project structure this npm package copies React modules to BusinessEEM/react/src/modules/.

Features

  • 🚀 Automatic Installation: Copies modules on npm install
  • 🔄 Easy Updates: Update modules with a single command
  • 📦 Laravel-like Behavior: Works similar to Laravel packages
  • 🎯 Structured Organization: Maintains clean module structure
  • 💾 Backup Support: Creates backups during updates
  • 📋 Version Tracking: Tracks installed versions and modules

Installation

Install the package in your BusinessEEM project:

npm install business-eem-modules

The package will automatically:

  1. Create the BusinessEEM/react/src/modules/ directory structure
  2. Copy all frontend modules from the package
  3. Set up configuration tracking

Project Structure

After installation, your project will have:

your-project/
├── BusinessEEM/
│   └── react/
│       └── src/
│           └── modules/
│               ├── pages/
│               │   ├── Inventory/
│               │   │   ├── index.js
│               │   │   └── form.js
│               │   └── Lands/
│               │       ├── index.js
│               │       └── form.js
│               ├── routes.js
│               └── .business-eem-modules.json (config file)

Available Modules

This package includes the following React modules:

Inventory Module

  • Inventory Component (pages/Inventory/index.js): Main inventory listing component
  • Inventory Form (pages/Inventory/form.js): Form component for inventory management

Lands Module

  • Lands Component (pages/Lands/index.js): Main lands listing component
  • Lands Form (pages/Lands/form.js): Form component for lands management

Routes Configuration

  • Routes (routes.js): Pre-configured routing for all modules

Usage

After installation, you can import and use the modules in your React application:

// Import individual components
import Inventory from './BusinessEEM/react/src/modules/pages/Inventory';
import InventoryForm from './BusinessEEM/react/src/modules/pages/Inventory/form';
import Lands from './BusinessEEM/react/src/modules/pages/Lands';
import LandsForm from './BusinessEEM/react/src/modules/pages/Lands/form';

// Or import the complete routes configuration
import routes from './BusinessEEM/react/src/modules/routes';

Example Route Integration

import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import moduleRoutes from './BusinessEEM/react/src/modules/routes';

function App() {
  return (
    <Router>
      <Routes>
        {moduleRoutes.map((route, index) => (
          <Route 
            key={index} 
            path={route.route} 
            element={route.component} 
          />
        ))}
      </Routes>
    </Router>
  );
}

export default App;

Updating Modules

To update the modules to the latest version:

npm run update-modules

This will:

  • Create a backup of existing modules
  • Install the latest module versions
  • Show a summary of changes (updated, new, or removed modules)
  • Preserve your project structure

Configuration

The package creates a .business-eem-modules.json file in the modules directory to track:

  • Package version
  • Installation date
  • List of installed modules

Example configuration:

{
  "packageName": "react-business-eem-modules",
  "installedAt": "2024-01-15T10:30:00.000Z",
  "version": "1.0.0",
  "modules": ["Inventory", "Lands"]
}

Development

Package Structure

react-business-eem-modules/
├── frontend/                 # Source modules (copied to target)
│   ├── pages/
│   │   ├── Inventory/
│   │   └── Lands/
│   └── routes.js
├── scripts/                  # Installation scripts
│   ├── install.js           # Post-install script
│   └── update.js            # Update script
├── package.json
└── README.md

Publishing Updates

  1. Update the version in package.json
  2. Modify modules in the frontend/ directory
  3. Publish to npm:
    npm publish

Custom Installation Path

If you need to change the target installation path, modify the findTargetDirectory() method in scripts/install.js.

Requirements

  • Node.js >= 12.0.0
  • React >= 16.8.0
  • A project with the BusinessEEM directory structure

Dependencies

  • fs-extra: For file system operations
  • chalk: For colored console output

Troubleshooting

Installation Issues

  1. Target directory not found: Ensure your project has the correct structure or the package can create it
  2. Permission errors: Run with appropriate permissions or check directory permissions
  3. Module conflicts: Check if existing modules conflict with package modules

Update Issues

  1. Backup failed: Ensure write permissions in the target directory
  2. Version conflicts: Check the .business-eem-modules.json file for version information

Support

For issues and questions:

  1. Check the configuration file: .business-eem-modules.json
  2. Review the installation logs
  3. Ensure proper project structure

License

MIT License - see LICENSE file for details.


Note: This package is designed to work with BusinessEEM project structure. Modify the target paths in the installation scripts if you need different directory structures. "# businesseemmodules"