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

@mountain-bell/hello-world

v0.1.5

Published

国ごとの「Hello, World!」とタイムゾーン情報を返す軽量ライブラリ — It says Hello for you!

Downloads

21

Readme

HelloWorld

HelloWorld は、国ごとの「Hello, World!」とタイムゾーン情報を返す軽量ライブラリです。

  • 国を指定するだけで、その国の挨拶・タイムゾーン・日時が取得できる
  • 国別のローカライズ済み「Hello, World!」が楽しめる

小さくて直感的、そして楽しい。
世界の “Hello, World!” をもっと気軽に扱えるようになります。


✨ 特徴

  • 🌍 国ごとに異なる「Hello, World!」を返す
  • 🕒 タイムゾーン・日付・時差(オフセット)も取得可能
  • ツリーシェイキング対応(named import が軽い)
  • 🧼 依存ゼロ・とても軽量

🧩 インストール

npm install @mountain-bell/hello-world

🚀 基本の使い方

1. Default Import

import HelloWorld from "@mountain-bell/hello-world";

const info = HelloWorld.get("japan");

console.log(info.greet); // "こんにちは、世界!"
console.log(info.timeZone); // "Asia/Tokyo"
console.log(info.date); // 現在日時(Tokyo)
console.log(info.offsetHours); // 時差

2. Named Import

import { getGreet, getTimeZone } from "@mountain-bell/hello-world";

getGreet("france");
// => "Bonjour, le monde !"

getTimeZone("usa");
// => "America/New_York"

🌍 対応している主要国

| 国 | LocationType | 挨拶 | | ---------------- | -------------- | ------------------- | | 日本 | japan | こんにちは、世界! | | 韓国 | korea | 안녕하세요, 세계! | | 中国 | china | 你好,世界! | | 台湾 | taiwan | 哈囉,世界! | | 香港 | hong_kong | 你好,世界! | | シンガポール | singapore | Hello, World! | | インド | india | Hello, World! | | 英国 | uk | Hello, World! | | フランス | france | Bonjour, le monde ! | | ドイツ | germany | Hallo, Welt! | | スペイン | spain | ¡Hola, mundo! | | イタリア | italy | Ciao, mondo! | | オランダ | netherlands | Hallo, wereld! | | スウェーデン | sweden | Hej, världen! | | アメリカ | usa | Hello, World! | | カナダ | canada | Hello, World! | | メキシコ | mexico | ¡Hola, mundo! | | ブラジル | brazil | Olá, mundo! | | アルゼンチン | argentina | ¡Hola, mundo! | | オーストラリア | australia | Hello, World! | | ニュージーランド | new_zealand | Hello, World! | | 南アフリカ | south_africa | Hello, World! |

※ 全世界分を網羅しておらず、一部の国のみ対応しています。少し不完全ですが、楽しんでいただけたら嬉しいです。


🛠️ API

HelloWorld.get(location?)

挨拶・タイムゾーン・日付・時差(offsetHours)をまとめて返します。

HelloWorld.get("spain");

getGreet(location?)

国の挨拶文を取得。

getGreet("germany"); // "Hallo, Welt!"

getTimeZone(location?)

タイムゾーンを取得。


getDate(location?)

指定国の現在日時を取得。


getOffsetHours(location?)

ローカルとの時差を取得。


ℹ️ location の省略について

HelloWorld の各 API は、location を省略した場合や "local" を指定した場合、
現在の端末(ローカル環境)のタイムゾーンと日時を基準にした情報を返します。

例:

get(); // get("local") と同じ
getGreet(); // ローカルの言語に依存せず "Hello, World!"(local のデフォルト)
getTimeZone(); // ローカルの TimeZone
getDate(); // ローカルの Date
getOffsetHours(); // 0

📄 ライセンス

MIT
© 2025 mountain-bell


👤 作者

Created by mountain-bell (a.k.a. MB)