JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q22022F
  • License Apache-2.0

这是一个 ExtendScript 的库,里面包含了一些常用的函数

Package Exports

  • zd-es-lib
  • zd-es-lib/index.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zd-es-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

zd-es-lib

Hi~ o( ̄ ▽  ̄)ブ

文档

介绍

  • 这是一个 ExtendScript 的库,里面包含了一些常用的函数.
  • 这个库的目的是为了方便开发者开发 After Effects 的脚本.
  • 基于 ts 开发,用 webpack 打包.
  • 目前这个库还在开发中,欢迎大家提出宝贵意见.

使用

tsconfig.json:

{
      "extends": "./node_modules/zd-es-lib/tsconfig.json",
      "compilerOptions": {
            "types": ["zd-es-lib/src/@types/auto-imports.d.ts", "zd-es-lib/src/@types/index.d.ts"]
      }
}

写好 ts 配置以后,这个库的所有函数和变量会变成全局的,不需要 import.

开发

  • webpack > 5.0.0
  • typescript > 5.0.0
# 安装依赖
npm install

# 开发环境
npm run dev

# 打包
npm run build

参考

  • src/global/JSON.ts => json2
  • src/global/atob.ts, src/global/btoa.ts => base64