@ppzp/export
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@ppzp/export

下载文件

npm install @ppzp/export
import { export_txt, export_csv } from '@ppzp/export'

// 下载 .txt 文件
export_txt('文件内容', '文件名.txt')

// 下载 .csv 文件
export_csv({
  filename: `文件名.csv`,
  columns: [`header1`, `header2'`, `header3"`, `header4,`, `,"""'\``], // 可选
  records: [
    [1,2,3,4,5],
    [`value1`, `value2'`, `value3"`, `value4,`, `,"""'\``],
  ],
})

TODO

PPz's CSV org

  • [x] CSV download
  • [ ] CSV 简解
  • [ ] CSV editor - PWA

/@ppzp/export/

    Package Sidebar

    Install

    npm i @ppzp/export

    Weekly Downloads

    2

    Version

    0.0.2

    License

    UNLICENSED

    Unpacked Size

    3.27 kB

    Total Files

    5

    Last publish

    Collaborators

    • dggy