File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ const { bahttext } = require('bahttext');
22const THBText = require ( 'thai-baht-text' ) ;
33const { ThaiBaht } = require ( 'thai-baht-text-ts' ) ;
44const BAHTTEXTjs = require ( './BAHTTEXT' ) ;
5- const { convert } = require ( '../dist/baht.cjs.production.min' ) ;
6- // const { convert: bahtLatest } = require('baht');
5+ const thaiBahtLib = require ( '@to-da-moon/thai-baht-lib' ) ;
6+ const { convert : baht } = require ( '../dist/baht.cjs.production.min' ) ;
7+ const { convert : bahtLatest } = require ( 'baht' ) ;
78
89const times = 100000 ;
910const numbers = [
@@ -59,8 +60,9 @@ const numbers = [
5960] ;
6061
6162const libraries = {
62- baht : n => convert ( n ) ,
63- // bahtLatest: n => bahtLatest(n),
63+ baht : n => baht ( n ) ,
64+ bahtLatest : n => bahtLatest ( n ) ,
65+ thaiBahtLib : n => thaiBahtLib . bahtText ( n ) ,
6466 bahttext : n => bahttext ( n ) ,
6567 'BAHTTEXT.js' : n => BAHTTEXTjs ( n ) ,
6668 'thai-baht-text' : n => THBText ( n ) ,
You can’t perform that action at this time.
0 commit comments