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

nt-roulette

v0.2.0

Published

nt-roulette ==================

Downloads

9

Readme

nt-roulette

Static Badge Static Badge Static Badge Static Badge Static Badge

nt-roulette-preview nt-roulette-preview nt-roulette-preview nt-roulette-preview nt-roulette-preview

nt-roulette은 SVG를 이용하여 구현된 룰렛입니다. 디테일한 애니메이션 조정을 통해 실제 룰렛의 물리적인 움직임과 흡사하게 동작하도록 제작 되었습니다. 사용자가 2~45개의 룰렛 조각을 설정 할 수 있으며 1. 실행 시 (running state) 마다 랜덤한 결과를 만들어냅니다. 2. 실행 이후 사용자가 멈출 수 있으며 (stop state) 멈추었을떄 화살표가 위치한 조각을 결과로 보여줍니다. 3. 또한 각 조각을 선택해서 결과를 보여 줄 수도 있습니다. 추가 설정으로 각 조각의 배경 컬러 패턴을 지정 할 수있습니다. 선택이 필요한 UI에 사용하면 보다 역동적인 사이트가 되지 않을까요??


Demo

nt-roulette demo page.


Installation

 $ npm install nt-roulette —-save

Usage

import NtRoulette from 'nt-roulette';

//template
//user`s source
...
<NtRoulette
  :data="[]" // default: 4
  :hole-size="0" // default: 4(rem)
  :text-info = "{
    size: 5,
    weight: 600,w
    color: #444
  }"
  :colors="['#ffffff', ...]"
  state="running"
/>

Props

  • data: array ▶︎ null
    data array의 크기에 따라 룰렛 조각의 수가 결정된다.

  • holeSize: number ▶︎ 0
    룰렛을 도넷 형태로 만들기 위한 중앙 원의 크기

  • textInfo: object ▶︎ {}
    룰렛에 표시 되는 텍스트 스타일 (font-size, font-weight, color)

  • colors: array ▶︎ []
    룰렛 조각의 배경 색상 목록 목록의 색상을 순서대로 표시하며 목록을 반복하며 색상 패턴을 만든다.

  • state: string ▶︎ pause
    룰렛 실행을 위한 상태. running: 실행, pause: 정지, reset: 초기화