diff --git a/packages/example-node/script.js b/packages/example-node/script.js index ab4f065..e6aabd4 100644 --- a/packages/example-node/script.js +++ b/packages/example-node/script.js @@ -6,7 +6,7 @@ import * as fs from "fs"; import * as path from "path"; import {fileURLToPath} from "url"; -import * as Psd from "@webtoon/psd"; +import Psd from "@webtoon/psd"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -14,4 +14,4 @@ const file_path = path.resolve(__dirname, "./example.psd"); const psd_file = fs.readFileSync(file_path); const psd = Psd.parse(psd_file.buffer); -console.log(psd.fileHeader); +console.log(psd); diff --git a/packages/psd/src/index.ts b/packages/psd/src/index.ts index 1a902dc..3793c08 100644 --- a/packages/psd/src/index.ts +++ b/packages/psd/src/index.ts @@ -7,6 +7,5 @@ import {Psd} from "./classes"; export type {Group, Layer, Node, NodeChild, NodeParent, Slice} from "./classes"; export {ColorMode, Depth, GuideDirection, SliceOrigin} from "./interfaces"; export type {Guide} from "./interfaces"; -export {parse} from "./methods"; export default Psd;