alphabet-list
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

alphabet-list

NPM NPM NPM

NPM

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


모든 응답은 Array 입니다.


영어

옵션 타입 기본
small? boolean False
big? boolean False

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? Number 0이상 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? boolean False
vowel? boolean False
double? boolean False

test

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

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

output

[
  '', '', '', '', '', '',
  '', '', '', '', '', '',
  '', '', '', '', '', '',
  '', '', '', '', '', '',
  '', '', '', '', '', '',
  '', '', '', '', '', '',
  '', ''
]

자세히 알아보기

Package Sidebar

Install

npm i alphabet-list

Weekly Downloads

20

Version

1.4.1

License

MIT

Unpacked Size

8.89 kB

Total Files

10

Last publish

Collaborators

  • waffle5140