1.4.1 • Published 3 years ago

alphabet-list v1.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

alphabet-list

NPM NPM NPM

NPM

영어, 숫자, 한글을 옵션에 따라, 자유롭게


모든 응답은 Array 입니다.


영어

옵션타입기본
small?booleanFalse
big?booleanFalse

test

const { enlist } = require("alphabet-list");

const option = {
  small: true,
  big: true,
};
console.log(enlist(option));

output

[
  'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h',
  'i', 'j', 'k', 'l', 'n', 'm', 'o', 'p',
  'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
  'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F',
  'G', 'H', 'I', 'J', 'K', 'L', 'N', 'M',
  'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
  'W', 'X', 'Y', 'Z'
]

숫자

옵션타입제한기본
min?Number0이상0
max?Number제한 없음50

test

const { numlist } = require("alphabet-list");

const option = {
  min: 0,
  max: 10,
};
console.log(numlist(option));

output

[
    0, 1, 2, 3, 4,
    5, 6, 7, 8, 9,
    10
]

한글

옵션타입기본
consonant?booleanFalse
vowel?booleanFalse
double?booleanFalse

test

const { kolist } = require("alphabet-list");

const option = {
  consonant: true,
  vowel: true,
  double: true,
};
console.log(kolist(option));

output

[
  'ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ',
  'ㅅ', 'ㅇ', 'ㅈ', 'ㅊ', 'ㅋ', 'ㅌ',
  'ㅍ', 'ㅎ', 'ㅏ', 'ㅑ', 'ㅓ', 'ㅕ',
  'ㅗ', 'ㅛ', 'ㅜ', 'ㅠ', 'ㅡ', 'ㅣ',
  'ㅐ', 'ㅔ', 'ㅒ', 'ㅖ', 'ㅘ', 'ㅙ',
  'ㅝ', 'ㅞ', 'ㅢ', 'ㄲ', 'ㄸ', 'ㅃ',
  'ㅆ', 'ㅉ'
]

자세히 알아보기

1.4.1

3 years ago

1.4.0

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago