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 🙏

© 2024 – Pkg Stats / Ryan Hefner

codarev12tov13

v1.0.0

Published

Discord.js v12 kodlarınızı en güncel v13 versiyonuna güncellemek için kolay bir modül.

Downloads

8

Readme

Bilgilendirme

paket benim değil ben sadece npm paket reposuna publish ettim paketin yapımcıları için Contributorlar kısmına bakabilirsiniz

V12toV13

CodAre'ın resmi sitesi için yapılmış v12tov13 sistemi (BETA)

Kurulum

const converter = require('codarev12tov13')

converter("./testScript.txt")

Kullanım

v12 kodunuzda bulunan metodların argümanlarının her birini "Ð" işaretleri arasına koymalısınız böylece 
program metodunuzda bulunan argümanları ayırt edebilsin. Eğer argüman sisteminin nasıl çalıştığını hala
anlamadıysanız testScript.txt içinde halihazırda yazılı olan koda bakarak argüman
sisteminin çalışma prensibini anlayabilirsiniz.

Kurulum aşamasından sonra çalıştırmak için src klasöründeki FileReader.js dosyasını başlatmanız yeterlidir.

Geliştiriciler İçin

Eğer çevirici programının kodlarını değiştirmek istiyorsanız bilmeniz gerekenler şunlardır

1)-Sp ve Bd- kullanıcının v12 kodunda belirttiği argümanı alıp v13te bulunan 
yerine koymaya yarar örnek olarak
.setAuthor(Ð"birinci argüman"Ð, Ð"ikinci argüman"Ð) //v12 kodumuz

//Program otomatik olarak argümanları sıraya dizer ve yerleştirir sonuç altta belirtilmiştir

.setAuthor({ name: "birinci argüman",iconURL: "ikinci argüman"})

//Bu çıktıyı oluşturmak için kullanılan obje aşağıda belirtilmiştir

{
name: '.setAuthor',
usage: '.setAuthor(argument, argument, argument)',
replace: '.setAuthor({ 1*name: -SpargumentBd-*1 2*iconURL: -SpargumentBd-*2 3*url: -SpargumentBd-*3 })',
maxArgsCount: 3, //burası metodun alabileceği maksimum argüman sayısını belirtir bu değer verilmediği sürece çıktı bozuk çıkacaktır
newName: '.setAuthor'
}

2)Processes arrayinde bulunan bazı objelerde bulunan replace özelliğinde bulunan 
<Sayi>* ve *<Sayi> ne anlama gelmektedir?

1* ve *1 gibi yerlerin kullanılma sebebi eğer 1. argüman girilmezse 1* ve *1 
arasındaki kısım otomatik olarak silinecektir anlamına gelmektedir aynı şekilde 
bu 2. ve 3. argümanlar için de geçerlidir. Ek olarak program otomatik olarak argümanların
arasına virgül ekleme işlemini de bu sayı ve yıldız işaretlerini kullanarak yapar örnek 
olarak 1. argümandan sonra 2. argüman gelir bu yüzden 1. argüman işaretinin sonu "*1" ile 
biter ve 2. argüman işaretinin başlangıcı "2*" ile başlar program otomatik olarak *1 ve 2* 
arasına virgül yerleştirir böylece herhangi bir argüman girilmese bile program hatasız sonuç verebilmektedir

3)maxArgsCount her argüman içerebilen metodların objelerine eklenmesi zorunlu bir özelliktir

4)justReplace nedir?

Eğer bir metodun kullanım şekli aynı kalmış sadece metodun adı değiştirilmiş ise
justReplace özelliği kullanılabilir. justReplace özelliği eklendiğinde argüman
sistemi kullanılmaz bu yüzden obje justReplace içeriyorsa o objenin replace 
özelliğine argüman sistemine dair herhangi bir şey girilmesi gereksizdir.

Not: justReplace özelliği sadece metodlarda değil işlem yapılan satırda herhangi 
bir şeyi değiştirmek için de kullanılabilmektedir.

5)useEqualOperatorHandler nedir?

Bu özellik Discord.js v13te değiştirilmiş bir özelliğin diğer bir özelliğe eşit olması
gerekiyorsa kullanılan bir özelliktir

      Örnek olarak
      
      if(message.channel.type == "text") {} //Giriş olan DJS v12 kodu
                    |
                    |
                    |
                    |
                    |
                    V

                //Kullanılan çevirici obje                   
                {
                  name: "text",
                  usage: "text",
                  replace: "GUILD_TEXT",
                  newName: "GUILD_TEXT",
                  useEqualOperatorHandler: {
                      what: ".type"
                    }
                }

                    |
                    |
                    |
                    |
                    |
                    V

    if(message.channel.type == "GUILD_TEXT") {} //Çıktı olan DJS v13 kodu

Contributorlar: