npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mornya/xlsx-libs

v1.0.0

Published

The project of Excel download modules.

Readme

XLSX Libs

npm node types downloads license

The project of Excel download modules.

This project has been created by Vessel CLI. For a simple and quick reference about it, click here.

About

프로젝트 개발에 사용되는 모듈들에 대해 집합적인 형태로 제공되는 패키지.

Installation

해당 라이브러리를 사용 할 프로젝트에서는 아래와 같이 의존성 모듈로 설치한다.

$ npm install --save @mornya/xlsx-libs
or
$ yarn add @mornya/xlsx-libs

Modules in the package

본 패키지에는 아래와 같은 모듈들을 포함한다. 제공되는 모듈과 메소드 사용법 등은 코드 스니핏을 참고한다.

XLSX module

샘플 모듈은 다음과 같은 메소드들을 제공한다.

XLSX.Builder

엑셀 워크시트 생성 및 암호화 등의 처리 후 다운로드 한다.

const headers = [
  { label: '순번', key: 'no' },
  { label: '이름', key: 'name' },
  { label: '나이', key: 'age' },
];
const items = [
  { no: 1, name: '김철수', age: 50 },
  { no: 2, name: '신영희', age: 30 },
  { no: 3, name: '홍길동', age: 100 },
];

위와 같은 내용으로 엑셀 데이터를 선언 후,

const option: XLSX.Option = {
  password: 'my@password', // optional
  filename: '친구들.xlsx', // optional
  isShowHeaderIfEmpty: true, // optional
};

const xlsx = new XLSX.Builder(option);

xlsx.addSheet('친구목록', headers);
xlsx.addItems(items);

await xlsx.build();
await xlsx.download();

위와 같은 방식으로 처리하거나, 아래 샘플처럼 옵션 내 비밀번호, 파일명 등은 builddownload 메소드의 파라미터로 별도 제공해도 된다.

const xlsx = new XLSX.Builder();

xlsx.addSheet('친구목록', headers);
xlsx.addItems(items);

await xlsx.build('my@password'); // 비밀번호 지정
await xlsx.download('친구들.xlsx'); // 다운로드 받을 파일명 지정

동일 엑셀 파일 내 여러 시트를 추가할 경우 addSheetaddItems를 아래와 같은 방식으로 계속 추가해주면 된다.

const xlsx = new XLSX.Builder();

// 1번 시트
xlsx
  .addSheet('친구목록#1', headers)
  .addItems(items);

// 2번 시트
xlsx
  .addSheet('친구목록#2', headers)
  .addItems(items)
  .addItems(items);

/* ... */

await xlsx.build();
await xlsx.download('친구들.xlsx');

Change Log

프로젝트 변경사항은 CHANGELOG.md 파일 참조.

License

프로젝트 라이센스는 LICENSE 파일 참조.