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

twc-math-utils

v1.0.15

Published

A simple TypeScript package for testing npm publishing

Readme

twc-math-utils

A TypeScript package providing math utilities and proto types.

Installation

npm install twc-math-utils

Usage

전체 패키지 사용 (All-in-one)

const {
  add,
  subtract,
  multiply,
  divide,
  Agent,
  LineMessage,
} = require('twc-math-utils');

console.log(add(2, 3)); // 5
console.log(typeof Agent); // object

개별 모듈 사용 (Modular)

수학 유틸리티만 사용

// 수학 모듈만 import
const math = require('twc-math-utils/dist/math');
console.log(math.add(5, 3)); // 8
console.log(math.sqrt(16)); // 4

// 또는 destructuring으로
const {
  add,
  subtract,
  multiply,
  divide,
  abs,
  round,
  ceil,
  floor,
  max,
  min,
  sqrt,
  pow,
} = require('twc-math-utils/dist/math');

Proto 타입만 사용

// Proto 모듈만 import
const proto = require('twc-math-utils/dist/proto');
console.log(typeof proto.Agent); // object
console.log(typeof proto.LineMessage); // object

// 또는 destructuring으로
const {
  Agent,
  LineMessage,
  ErrorResponse,
  LineChannel,
} = require('twc-math-utils/dist/proto');

API

Math Utilities

  • add(a, b) - 두 숫자를 더합니다
  • subtract(a, b) - 두 숫자를 뺍니다
  • multiply(a, b) - 두 숫자를 곱합니다
  • divide(a, b) - 두 숫자를 나눕니다
  • abs(x) - 절댓값을 반환합니다
  • round(x) - 반올림합니다
  • ceil(x) - 올림합니다
  • floor(x) - 내림합니다
  • max(a, b) - 더 큰 값을 반환합니다
  • min(a, b) - 더 작은 값을 반환합니다
  • sqrt(x) - 제곱근을 반환합니다
  • pow(base, exponent) - 거듭제곱을 반환합니다

Proto Types

  • Agent 관련: Agent, ExternalAgent, CookieAgent, LoginAgentRequest, LoginAgentResponse
  • Line Message 관련: LineMessage, LineMessageComposite
  • Line Channel 관련: LineChannel, BubbleMessage, LineChannelMessage
  • Error 관련: ErrorResponse
  • Event 관련: PageViewEvent, CreatePageViewEventRequest
  • AI 관련: AgentAiChatLog, MultiGetAgentAiChatLogRequest
  • File Upload 관련: FileUploadRequest, FileUploadResponse

모듈 구조

twc-math-utils/
├── dist/
│   ├── index.js      # 전체 패키지 (수학 + Proto)
│   ├── math.js       # 수학 유틸리티만
│   └── proto.js      # Proto 타입만

License

ISC