opensourcerepository
v1.0.0
Published
let developers know this project is open source
Readme
OpenSourceRepository 🚀
A simple utility to let developers know your project is open source and highlight the frameworks/technologies used in your project with beautiful icons.
Features
- 🎨 Display frameworks/technologies used with their icons
- 🔗 Show repository link
- 📢 Customizable open source message
- ⚙️ Highly configurable options
Installation
npm install opensourcerepository
# or
yarn add opensourcerepositoryUsage
Basic usage:
import { OpenSource } from 'opensourcerepository';
import * as package from '../package.json';
// Initialize with package.json
OpenSource({ package });Advanced usage with custom options:
import * as package from '../package.json';
OpenSource({
package: package,
showMessage: true,
showPackages: true,
message: "✨ Contributions are welcome!",
repoLink: "https://github.com/yourusername/yourrepo",
buildWith: [
// Optional: Override detected frameworks
{ name: "TypeScript", icon: "..." },
{ name: "React", icon: "..." }
]
});Options
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| package | Record<string, any> | Required | Your project's package.json |
| showMessage | boolean | true | Show open source message |
| showPackages | boolean | true | Show frameworks used |
| message | string | "🚀 We're open source and open to contributions!" | Custom message |
| repoLink | string | Auto-detected | Repository URL |
| buildWith | Array | Auto-detected | Override detected frameworks |
Contributing
Contributions are always welcome! Here's how you can contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development
- Clone the repository
- Install dependencies:
yarn install
# or
npm install- Start development:
yarn dev
# or
npm run devLicense
MIT
Support
If you like this project, please give it a ⭐️!
