Skip to content
pubscout

nepali_utils

3.0.8, released 2 years ago by sarbagyastha.com.np

Pure Dart collection of Nepali utilities including Bikram Sambat date conversion and formatting.

WASM-ready
$ flutter pub add nepali_utils
Source repository

What it does

Provides utility classes for Bikram Sambat (BS) date-time operations, AD/BS date conversion, date and number formatting, fuzzy time moments, and Roman to Nepali Unicode text conversion.

AI-written summary of version 3.0.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to work with Bikram Sambat (BS) calendar dates in a Dart or Flutter application.
  • You need to convert dates between Gregorian (AD) and Bikram Sambat (BS).
  • You need to format numbers, currency, and timestamps into Nepali representations or words.

Skip it when

  • You only need standard Gregorian calendar utilities supported natively by Dart's core DateTime class.

Strengths

  • Comprehensive collection of Nepali calendar and text utilities in a single package.
  • Supports date conversion and formatting across a wide range of BS years.
  • Includes live Nepali Unicode conversion for text inputs.

Weaknesses

  • Limited to specific regional utilities (Nepal calendar, text, and numbers).

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
NepaliDateTime gorkhaEarthQuake = NepaliDateTime.parse('2072-01-12T11:56:25');
print(gorkhaEarthQuake.year); // 2072

NepaliDateTime currentTime = NepaliDateTime.now();
print(currentTime.toIso8601String());

Alternatives

Packages that do the same job and could replace nepali_utils.

  • stream_transform

    Extension methods adding common stream transform operators

  • gtk

    GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.

  • flutter_flavorizr

    A utility to easily create and configure application flavors in Flutter.

  • sugar

    Standard library extension for date-times, timezones, collections, and monads.

Works with

Packages commonly used together with nepali_utils: ones it builds on, ones built on it, and its own family.