Skip to content

๐ŸŒบ ๋ฌด๊ถํ™” ์ฝ”๋“œ mugunghwa code ( kr base 72 )

License

Notifications You must be signed in to change notification settings

hmmhmmhm/mugunghwa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

mugunghwa

๐ŸŒบ ๋ฌด๊ถํ™” ์ฝ”๋“œ mugunghwa code ( kr base 72 )

๋ฌด๊ถํ™” ์ฝ”๋“œ๋Š” 10์ง„๋ฒ• ์ˆซ์ž๋ฅผ ํ•œ๊ธ€ ๋ฒˆํ˜ธ๋กœ ๋ณ€ํ™˜ํ•ด์ฃผ๋Š” ๋ชจ๋“ˆ์ž…๋‹ˆ๋‹ค. JSConf Korea ๋ฐœํ‘œ๋ฅผ ํ†ตํ•ด์„œ 6์›” 22์ผ ์ตœ์ดˆ ๊ณต๊ฐœ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Install

npm install mugunghwa --save

Usage

๋ฌด๊ถํ™” ์ฝ”๋“œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Encode

import mugunghwa from 'mugunghwa'
const encoded = mugunghwa.encode(`31252352334`)
console.log(`encoded: ${encoded}`)

Decode

import mugunghwa from 'mugunghwa'
const encoded = mugunghwa.encode(`31252352334`)
const decoded = mugunghwa.decode(encoded)

console.log(`encoded: ${encoded}`)
console.log(`decoded: ${decoded}`)

Is browser support?

๋ธŒ๋ผ์šฐ์ €์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐ”๋กœ ์ฒจ๋ถ€๊ฐ€๋Šฅํ•œ ์ฝ”๋“œ๋Š” build ํด๋” ์•ˆ์— mugunghwa.js ์ž…๋‹ˆ๋‹ค.

What exactly mugung.js

mugung.js ๋Š” Big-Integer ์—ฐ์‚ฐ ๋ชจ๋“ˆ์ด ํฌํ•จ๋˜์–ด์„œ ์—ฐ์‚ฐ๋ฒ”์œ„๊ฐ€ ๋Š˜์–ด๋‚œ ๋ฒ„์ „์ž…๋‹ˆ๋‹ค. ๋งŒ์•ฝ 1000์–ต์„ ๋„˜๋Š” ๋ฒ”์œ„๋ฅผ ๊ณ„์‚ฐํ•ด์•ผํ•˜๋Š” ๊ฒฝ์šฐ mugung.js ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•ด์ฃผ์„ธ์š”.

License

MIT Licensed.

About

๐ŸŒบ ๋ฌด๊ถํ™” ์ฝ”๋“œ mugunghwa code ( kr base 72 )

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published