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 🙏

© 2025 – Pkg Stats / Ryan Hefner

yanghoscript

v3.4.1

Published

YanghoScript is a lightweight programming language for scripting and automation.

Downloads

1,136

Readme

YanghoScript 🚀

YanghoScript - đây là một ngôn ngữ lập trình đơn giản, hỗ trợ làm việc với biến, phép toán số học và hiển thị kết quả. Ngôn ngữ này được tạo ra dành riêng cho các Yangho Việt Nam! 😎🔥

Đặc điểm ✨

✅ Tính năng hiện có:

  • Gán giá trị cho biến
  • Các phép toán số học
  • Hiển thị kết quả
  • Ghi chú (comment) dòng mã
  • Ghi chú nhiều dòng (multiline comments) ✅
  • Câu lệnh điều kiện
  • Hàm (Mới chỉ triển khai một phần)

🔜 Tính năng sắp có:

  • Vòng lặp
  • Xử lý lỗi

Cài đặt ⚙️

1️⃣ Cài đặt qua NPM 📦

Bạn có thể cài đặt YanghoScript trực tiếp từ NPM:

npm install -g yanghoscript

Sau khi cài đặt, bạn có thể chạy YanghoScript bằng lệnh:

yanghoscript <filename>

Ví dụ:

yanghoscript index.ys

2️⃣ Cài đặt từ GitHub (Dành cho nhà phát triển) 🛠️

Clone repository từ GitHub:

git clone https://github.com/hoachnt/YanghoScript.git

Cài đặt dependencies:

cd YanghoScript
bun install

Chạy mã nguồn trong thư mục dự án:

bun dev examples/code.ys

Cách sử dụng 💡

📌 Gán biến

text = 'Hoach' IM
summ = 6 + 5 IM

🖥️ Hiển thị kết quả

NOILIENTUC text IM
NOILIENTUC summ IM

➗ Các phép toán số học

sumandmin = summ - 20 + 2 * 2 IM
NOILIENTUC sumandmin IM

🔀 Câu lệnh điều kiện

NEU (2 UYTIN 1) ME
    NOILIENTUC 'Yasuo' IM
MAY KOTHI NEU (2 NHIEUHON 1) ME
    NOILIENTUC 'Kosuo' IM
MAY KOTHI ME
    NOILIENTUC 'Default' IM
MAY

🏗️ Hàm

THE greet(name) ME
    NOILIENTUC 'Hello, ' + name IM
MAY

greet('Hoachnt') IM

📝 Ghi chú nhiều dòng (Multiline Comments)

Bạn có thể sử dụng comment nhiều dòng để ghi chú mã nguồn như sau:

/*
Đây là một comment nhiều dòng.
Dùng để chú thích các đoạn code dài.
*/
NOILIENTUC 'Hello World' IM

📖 Từ điển từ khóa

| YanghoScript | JavaScript Equivalent | | ------------ | --------------------- | | TRA | return | | IM | ; (kết thúc lệnh) | | NOILIENTUC | console.log | | NEU | if | | ME | { | | MAY | } | | KOTHI | else | | THE | function | | UYTIN | === | | NHIEUHON | > | | ITHON | < |

🤝 Đóng góp

Mọi đóng góp đều được hoan nghênh! 💖 Để tham gia:

  1. 🔀 Fork repository trên GitHub.
  2. 📥 Clone về máy.
  3. 🌿 Tạo nhánh mới.
  4. 💾 Commit thay đổi.
  5. 🔃 Gửi pull request.

⚠️ Quan trọng

YanghoScript vẫn đang trong giai đoạn phát triển sơ khai và có thể còn nhiều hạn chế. Cảm ơn bạn đã quan tâm đến ngôn ngữ này! 🚀

Những người đóng góp ✨

Cảm ơn những người tuyệt vời sau đây:

Dự án này tuân theo all-contributors. Mọi đóng góp đều được hoan nghênh! 🎉