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

@sonwonjae/builtin-extends

v1.1.0

Published

A utility library that collects useful JavaScript built-in object extension methods.

Readme

💡 builtin-extends

유용한 JavaScript 빌트인 객체 확장 메서드들을 모은 유틸리티 라이브러리입니다.

shuffle, pureSort 등 자주 사용하는 기능을 프로토타입 메서드로 사용할 수 있도록 도와줍니다.


✨ 특징

  • [].shuffle()처럼 간편하게 사용 가능
  • 반복되는 유틸리티 코드 제거
  • 테스트와 타입 정의 포함

📦 설치

npm install builtin-extends
yarn add builtin-extends

🚀 사용법 예시

import "builtin-extends";

// 배열을 셔플
const arr = [1, 2, 3, 4, 5];
arr.shuffle(); // 예: [3, 5, 1, 4, 2]

// 원본 배열은 수정하지 않고 정렬된 새 배열 반환
const unsorted = [3, 1, 4, 2];
const sorted = unsorted.pureSort(); // [1, 2, 3, 4]
console.log(unsorted); // [3, 1, 4, 2]

📝 지원 메서드

Object

| 메서드 이름 | 설명 | | ------------- | ---------------------------------------------------- | | isString() | 해당 object가 string인지 검증해주는 타입가드입니다. | | isNumber() | 해당 object가 number인지 검증해주는 타입가드입니다. | | isBoolean() | 해당 object가 boolean인지 검증해주는 타입가드입니다. |


Array

| 메서드 이름 | 설명 | | ----------- | --------------------------------------- | | shuffle() | 배열 순서를 무작위로 섞어줍니다. | | draw() | 배열에서 무작위 인자 하나를 뽑아줍니다. |


String

| 메서드 이름 | 설명 | | ---------------- | --------------------------------------------------------- | | toCamelCase() | 케밥/스네이크/파스칼 케이스를 카멜 케이스로 변환해줍니다. | | toPascalCase() | 케밥/스네이크/카멜 케이스를 파스칼 케이스로 변환해줍니다. | | toSnakeCase() | 케밥/카멜/파스칼 케이스를 스네이크 케이스로 변환해줍니다. | | toKebabCase() | 스네이크/카멜/파스칼 케이스를 케밥 케이스로 변환해줍니다. |


Number

| 메서드 이름 | 설명 | | ----------- | ---------------------- | | isEven() | 짝수인지 판별해줍니다. | | isOdd() | 홀수인지 판별해줍니다. |


🥮 테스트

npm run test

📘 라이센스

MIT License