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

ng-aparat-video

v1.0.1

Published

An Angular component for embedding Aparat videos

Readme

NgAparatVideo

NgAparatVideo یک کتابخانه Angular برای نمایش ویدیوهای آپارات است. این کتابخانه به شما امکان می‌دهد بدون نیاز به قرار دادن مستقیم iframe در کد، ویدیوهای آپارات را در پروژه‌های Angular خود نمایش دهید.

نصب

برای نصب این کتابخانه، دستور زیر را اجرا کنید:

npm install ng-aparat-video

نحوه استفاده

پس از نصب، ماژول NgAparatVideoModule را در ماژول اصلی یا ماژول مربوطه در پروژه خود اضافه کنید:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { NgAparatVideoModule } from 'ng-aparat-video';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, NgAparatVideoModule],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

استفاده در کامپوننت

پس از وارد کردن ماژول، می‌توانید کامپوننت ng-aparat-video را در قالب (template) خود استفاده کنید:

<ng-aparat-video videoId="YOUR_VIDEO_ID"></ng-aparat-video>

خصوصیات کامپوننت

| نام ویژگی | نوع داده | مقدار پیش‌فرض | توضیحات | |-----------|----------|--------------|---------| | videoId | string | - | شناسه ویدیوی آپارات که می‌خواهید نمایش دهید | | useScriptEmbed | boolean | true | انتخاب روش نمایش (اسکریپت امبد یا آیفریم) | | autoplay | boolean | true | پخش خودکار ویدیو | | muted | boolean | true | بی‌صدا کردن ویدیو هنگام شروع | | titleShow | boolean | true | نمایش عنوان ویدیو | | startTime | number | 0 | زمان شروع ویدیو به ثانیه | | recom | string | self | تنظیمات پیشنهاد ویدیو (خودکار یا پیشنهادی) |

اجرای تست‌ها

برای اجرای تست‌های واحد از دستور زیر استفاده کنید:

ng test ng-aparat-video

درباره این پروژه

این کتابخانه برای تسهیل نمایش ویدیوهای آپارات در پروژه‌های Angular توسعه یافته است. در صورتی که وب‌سایت آپارات روش نمایش ویدیوهای خود را تغییر دهد، کافی است این کتابخانه را به‌روز کنید تا نیاز به تغییر در کل پروژه نداشته باشید.

منابع اضافی

برای اطلاعات بیشتر، می‌توانید به مستندات رسمی Angular و npm مراجعه کنید: