Skip to content

heokhe/chandgig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chandgig

Data size units (B, KB, MB, GB, TB, PB, EB, ZB, YB) in Farsi

import { chandgig } from 'chandgig'

const bytes = 1555978999 // 1.449118367GB
chandgig(bytes) // '۱٫۴۵ گیگابایت'
chandgig(bytes, { compact: true }) // '۱٫۴۵ گیگ'

chandgig(0) // '۰ بایت'
chandgig(0, { convertZeroToWord: true }) // 'صفر بایت'

About

Data size units (GB, MB, ...) in Farsi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published