Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

component-fetch

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-fetch

Install components from your GitHub repository aka shadcn for your UI library

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source
Component Fetch Logo

Component Fetch

Install components from your GitHub repository
aka shadcn for your UI library.

How to use

Login

npx component-fetch login
? Enter your GitHub personal access token (https://github.com/settings/tokens): [hidden]
✓ Successfully logged in as mrzmyr

[!NOTE] Required permissions: Contents: Read-only

Initialize

First you need to have a GitHub repository with components to install from, see component-fetch-registry for example.

npx component-fetch init
? Enter the GitHub repository (owner/repo): mrzmyr/component-fetch-registry
? Where should components be installed locally? src/components/cf
✓ Configuration saved successfully

Install component

npx component-fetch add button
Fetching https://github.com/mrzmyr/component-fetch-registry/tree/main/src/components/button
✔ Installed `button` to `src/components/cf/button`

Use component

import { Button } from "src/components/cf/button";

API

npx component-fetch login

Add GitHub credentials

npx component-fetch init

Create component-fetch.config.json file

npx component-fetch add

Fetch components and install them to your project

npx component-fetch logout

Remove stored credentials

FAQs

Package last updated on 26 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc