New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

mc-react-library

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mc-react-library

React component library used in Materials Cloud, built with vite and bootstrap.

latest
npmnpm
Version
0.5.0
Version published
Weekly downloads
12
-7.69%
Maintainers
1
Weekly downloads
 
Created
Source

Materials Cloud React component library

React component library used in Materials Cloud, built with vite and bootstrap.

Install via

npm install mc-react-library

Note: make sure all peerDependencies (defined in package.json) are installed in the host application!

And use with

import {
  DoiBadge,
  HelpButton,
  McloudSpinner,
  ...
} from "mc-react-library";

Note: see usage examples of each component in the demo page.

Project structure:

  • lib\ - contains the React components of the library.
  • src\ - contains a demo page that renders the components for development.

Development

Using the demo page

For developing the library of components, start the demo page (in src\) by

npm install
npm run dev

and update the components in lib\.

Building and testing locally

To build the library and test it locally in an external application (before publishing to npm), use

npm run build
npm pack

which will create a .tgz file that can then be installed by the external application via

npm install /path/to/mc-react-library-x.y.z.tgz

Publishing a new version

To make a new version and publish to npm via GitHub Actions:

npm version <major/minor/patch>
git push --follow-tags

FAQs

Package last updated on 09 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts