Bnlang Package Manager (BPM)
The Bnlang Package Manager (BPM) is the official package manager for the Bnlang programming language.
It allows developers to discover, install, and manage libraries and tools, making the ecosystem richer and more productive.
BPM simplifies sharing code and ensures a consistent workflow across projects.
Installing BPM
BPM comes bundled with Bnlang. You can verify installation by running:
bpm --version
Basic Commands
bpm init
→ নতুন প্রজেক্ট শুরু করে এবংbnl_package.json
ফাইল তৈরি করে।bpm install <প্যাকেজ>
→ রেজিস্ট্রি থেকে একটি প্যাকেজ ইনস্টল করে।bpm remove <প্যাকেজ>
→ ইনস্টল করা প্যাকেজ সরিয়ে দেয়।bpm update <প্যাকেজ>
→ প্যাকেজ সর্বশেষ সংস্করণে আপডেট করে।bpm publish
→ প্যাকেজ BPM রেজিস্ট্রিতে প্রকাশ করে।
Example Workflow
# Initialize a new project
bpm init
# Install a library
bpm install my-package
# Remove it if no longer needed
bpm uninstall my-package
# Publish your own library
bpm publish
Best Practices
- Keep your
bnl_package.json
file under version control. - Use semantic versioning (
^1.2.3
) for predictable updates. - Always run
bpm audit
to check for security issues. - Share your packages with meaningful names and documentation.