diff --git a/js/README.md b/js/README.md index 3854c09..add7213 100644 --- a/js/README.md +++ b/js/README.md @@ -46,29 +46,30 @@ new NeetoTimezoneSelector(document.getElementById("elementId"), { ``` ### ianaTimezoneToHumanReadble + ```js import { ianaTimezoneToHumanReadable } from "@neetohq/timezones"; ianaTimezoneToHumanReadable("Asia/Calcutta") // => Indian Standard Time ianaTimezoneToHumanReadable("America/New_York") // => Eastern Standard Time + +ianaTimezoneToHumanReadable("Europe/Berlin") // => Central Standard Time ``` ## Development ### Clone the repo -``` + +```bash git clone git@github.com:neetohq/neeto-timezones.git cd neeto-timezones/js +pnpm install +pnpm dev ``` -### Install the dependencies -```bash -pnpm i -``` +### Publishing to npm -### Run -Run the package using pnpm -```bash -pnpm run dev -``` +1. Bump `package.json` version +2. Commit and push +3. `pnpm build && pnpm publish` diff --git a/js/package.json b/js/package.json index 938c707..91a30ca 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "@neetohq/timezones", - "version": "0.2.0", + "version": "0.2.2", "license": "MIT", "exports": { ".": {