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

random-korean-nickname

v1.0.14

Published

무작위 한글 닉네임 생성 패키지

Downloads

122

Readme

random-korean-nickname

무작위 한글 닉네임 생성 패키지

설명

한국어로 간단하게 무작위 닉네임을 생성할 수 있는 패키지입니다. 원리는 다음과 같습니다.

  • firstWords = ["빨간", "노란", "하얀", ...]
  • secondWords = ["한국", "미국", "일본", ...]
  • thirdWords = ["동전", "의자", "컴퓨터", ...]

위와 같이 3 가지 배열이 있고, 각 배열마다 랜덤하게 한 글자씩 뽑습니다. 그리고 이 단어들을 이어 하나의 랜덤한 닉네임을 생성합니다. 예를 들어 "빨간미국컴퓨터"같은 닉네임이 생성될 수 있습니다.

사용법

설치

  • npm 사용 시

    npm install random-korean-nickname
  • yarn 사용 시

    yarn add random-korean-nickname

랜덤 닉네임 생성

  • CommonJS 사용 시

    const { newRandomNick } = require("random-korean-nickname");
    
    const nickname = newRandomNick();
  • ESM 사용 시

    import { newRandomNick } from "random-korean-nickname";
    
    const nickname = newRandomNick();

커스텀

기본적인 구조는 3 가지 배열을 이용해 각 배열에서 한 글자씩 랜덤으로 뽑고, 이 단어를 이어붙입니다. 만약 이때 사용되는 배열을 커스텀할 수 있습니다.

const celebrities = ["유재석", "손흥민"];
const musics = ["힙합", "팝"];
const movies = ["괴물", "기생충"];

const nickname = newRandomNick(celebrities, musics, movies);

위의 경우 랜덤 닉네임 생성 결과로 "손흥민팝괴물"같은 닉네임을 확인할 수 있습니다.