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

weather-cli-martapura

v1.0.5

Published

A CLI program in openweathermap.org

Downloads

2

Readme

Instalasi

npm i weather-cli-martapura

atau

npx weather-cli-martapura

Konfigurasi

weather config -k={your api key} -c={your city id} -u=Celsius

buka link berikut untuk mendapatkan api key, jika belum punya akun silahkan daftar terlebih dahulu

  1. api keys
  2. cari kota
  3. https://openweathermap.org/city/1636022 <---- city id

Perintah

weather [command] <options>

| command | description| |--|--| | now |show weather for now | | forecast |show weather forecast | | config|show weather forecast | | forecast |set API key, default city ID, default temperature units | | version|show package version | | help|show help menu for a command |


weather now <options>

| options | description | |--|--| | --api-key, -k | set the API Key for OpenWeatherMap services if you haven't set it in configure method. | | --city, -c | set the City ID in OpenWeatherMap if you want to query weather data in a city different from the default one.| | --units, -u |set the temperature units if you want to read temperature in a different unit.|


weather forecast <options>

| options | description | |--|--| | --api-key, -k | set the API Key for OpenWeatherMap services if you haven't set it in configure method. | | --city, -c | set the City ID in OpenWeatherMap if you want to query weather data in a city different from the default one.| | --units, -u |set the temperature units if you want to read temperature in a different unit.|


weather config <options>

| options | description | |--|--| | --print, -p | print current configuration object | | --api-key, -k | [Required] set the API Key for OpenWeatherMap services. | | --city, -c | [Optional] set the default City ID in OpenWeatherMap. Default: 4862034| | --units, -u | [Optional] set the default temperature units. Options: Kelvin (default), Celsius, Fahrenheit.|

Publikasi paket npm

  1. buat akun baru di https://www.npmjs.com/
  2. jalankan perintah npm adduser --registry=https://registry.npmjs.org/:_authToken=<token-from-npm>
  3. -npm publish . --access=public

PENTING: pastikan nama package belum terdaftar

untuk memperbaharui package silahkan ubah version pada file package.json kemudian jalankan perintah -npm publish . --access=public

Sumber

https://codeburst.io/build-a-command-line-interface-cli-application-with-node-js-59becec90e28