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

oraksoft-node-tools

v0.1.18

Published

CLI araçları koleksiyonu - orak-copy-deps, orak-deploy-ftp, orak-deploy-zip, orak-env-change ve orak-env-dev-change komutları

Readme

Oraksoft Node Tools

Node.js projeleriniz için kullanışlı CLI araçları koleksiyonu.

Kurulum

Global kurulum (önerilen)

pnpm install -g oraksoft-node-tools

Proje bazında kurulum

pnpm install oraksoft-node-tools --save-dev

Konfigürasyon

Bu araçlar orak-config.json dosyasını kullanarak konfigüre edilir. Bu dosyayı proje kök dizininizde oluşturun:

{
  "copyDepsModulesToCopy": [
    {
      "name": "module-name",
      "file": "dist/module.js"
    }
  ],
  "copyDepsLibFolder": "lib",
  "copyDepsLibFolderEmpty": true,
  "zip_package": ["lib/", "bin/"],
  "zip_package_out_file": ".orak-dist/deploy1.tar.gz",
  "zip_content": ["bin", "lib"],
  "zip_content_out_file": ".orak-dist/deploy.tar.gz"
}

Komutlar

orak-copy-deps

Node.js bağımlılıklarınızı belirtilen klasöre kopyalar.

orak-copy-deps

Gerekli orak-config.json ayarları:

{
  "copyDepsModulesToCopy": [
    {
      "name": "module-name",
      "file": "dist/module.js"
    }
  ],
  "copyDepsLibFolder": "lib",
  "copyDepsLibFolderEmpty": true
}

orak-deploy-ftp

Belirtilen dosyayı FTP sunucusuna yükler.

orak-deploy-ftp [--profile <name>] [--v]

Gerekli .env.orakconfig dosyası:

osf_ftp_host=ftp.example.com
osf_ftp_user=username
osf_ftp_password=password
osf_ftp_secure=false
osf_ftp_local_file=deploy.tar.gz
osf_ftp_remote_path=public_html
  • osf_ftp_host: FTP sunucusunun adresi
  • osf_ftp_user: FTP kullanıcı adı
  • osf_ftp_password: FTP şifresi
  • osf_ftp_secure: true FTPS kullanır, false FTP kullanır (varsayılan: false)
  • osf_ftp_local_file: Yüklenmek istenen dosyanın proje köküne göre yolu (uzantılı olarak yazın, ör: deploy.tar.gz)
  • osf_ftp_remote_path: Uzak sunucudaki hedef klasör yolu (varsayılan: /)
  • Dosya adı otomatik olarak osf_ftp_local_file'ın son bölümünden alınır

Ek opsiyonlar:

  • --profile <name>: Belirtilen profil için önce osf_ftp_local_file_<name> (veya orak-config.json içinde aynı anahtar) aranır. Örnek: --profile test -> osf_ftp_local_file_test. Konsolda: test profil uygulandı.

  • --v: Paket sürümünü (package.json içindeki version) dosya adına ekler. Noktalar _ ile değiştirilecek (örn. 1.2.3 -> 1_2_3) ve çok parçalı uzantılar korunacaktır (deploy.tar.gz -> deploy-1_2_3.tar.gz). Konsolda: 📦 Versiyon eklendi: 1_2_3 ve 📄 Güncel dosya adı: ...

❗ Güvenlik Notları:

  • .env.orakconfig dosyası zaten .gitignore'da bulunuyor
  • Web sunucunuzda .env.orakconfig dosyalarına erişimi engelleyin (.htaccess)
  • Dosya izinlerini kısıtlayın: chmod 600 .env.orakconfig

📝 osf_ftp_host, osf_ftp_local_file ve osf_ftp_remote_path değerleri orak-config.json içinde de tanımlanabilir. .env.orakconfig'de yoksa orak-config.json'a bakar. Profil kullanılıyorsa osf_ftp_local_file_<profile> anahtarı da desteklenir.

orak-zip-content

Belirtilen dosya ve klasörleri tar.gz formatında arşivler.

orak-zip-content [--profile <name>] [--v]

Gerekli orak-config.json ayarları:

{
  "zip_content": ["bin", "lib"],
  "zip_content_out_file": ".orak-dist/deploy"
}
  • zip_content: Arşive dahil edilecek dosya ve klasörler
  • zip_content_out_file: Oluşturulacak arşiv dosyasının tam yolu (uzantısız; .tar.gz kod tarafından eklenir)

Ek opsiyonlar:

  • --profile <name>: Profil adı verildiğinde zip_content_out_file_<name> anahtarı tercih edilir (örn: zip_content_out_file_test). Konsolda: test profil uygulandı.

  • --v: Paket sürümünü (package.json içindeki version) dosya adına ekler; noktalar _ ile değişir ve dosya uzantısı korunur (örn. .orak-dist/deploy -> .orak-dist/deploy-1_2_3.tar.gz). Konsolda: 📦 Versiyon eklendi: 1_2_3

orak-zip-package

Belirtilen dosya ve klasörleri tar.gz formatında paket arşivi olarak oluşturur.

orak-zip-package [--profile <name>] [--v]

Gerekli orak-config.json ayarları:

{
  "zip_package": ["lib/", "bin/"],
  "zip_package_out_file": ".orak-dist/deploy1"
}
  • zip_package: Paket arşivine dahil edilecek dosya ve klasörler
  • zip_package_out_file: Oluşturulacak paket arşiv dosyasının tam yolu (uzantısız; .tar.gz kod tarafından eklenir)

Ek opsiyonlar:

  • --profile <name>: Profil adı verildiğinde zip_package_out_file_<name> anahtarı tercih edilir (örn: zip_package_out_file_test).

  • --v: Paket sürümünü (package.json içindeki version) dosya adına ekler; noktalar _ ile değişir ve dosya uzantısı korunur (örn. .orak-dist/deploy1 -> .orak-dist/deploy1-1_2_3.tar.gz).

orak-env-change

Ortam dosyalarını (.env) değiştirir.

orak-env-change dev
# veya
orak-env-change production

Opsiyonel orak-config.json ayarları:

{
  "fiEnvChangeStatus": "dev"
}

Bu durumda parametre vermeden orak-env-change komutunu çalıştırabilirsiniz.

Kullanım Örnekleri

1. Bağımlılık Kopyalama

# orak-config.json'da tanımlanan modülleri kopyala
orak-copy-deps

2. Arşiv Oluşturma ve FTP Yükleme

# .env.orakconfig dosyası oluşturun ve FTP bilgilerinizi ekleyin

# İçerik arşivi oluştur
orak-zip-content

# FTP'ye yükle
orak-deploy-ftp

# Alternatif olarak paket arşivi oluştur
orak-zip-package

3. Ortam Değiştirme

# Development ortamına geç
orak-env-change dev

# Production ortamına geç
orak-env-change prod

Gereksinimler

  • Node.js >= 14.0.0
  • NPM veya Yarn

Lisans

MIT

Katkıda Bulunma

  1. Fork edin
  2. Feature branch oluşturun (git checkout -b feature/amazing-feature)
  3. Değişikliklerinizi commit edin (git commit -m 'Add amazing feature')
  4. Branch'i push edin (git push origin feature/amazing-feature)
  5. Pull Request oluşturun

Sorun Bildirimi

Sorunlarınızı GitHub Issues sayfasından bildirebilirsiniz.