Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance "file" information #101

Closed
Borewit opened this issue Dec 28, 2019 · 1 comment
Closed

Enhance "file" information #101

Borewit opened this issue Dec 28, 2019 · 1 comment
Assignees

Comments

@Borewit
Copy link
Owner

Borewit commented Dec 28, 2019

Enhance the underlying file, stream information.

Currently there is tokenizer.fileSize.

Replace this with tokenizer.fileInfo of type IFileInfo where IFileInfo is:

export interface IFileInfo {
  /**
   * File size in bytes
   */
  size?: number;
  /**
   * MIME-type of file
   */
  mimeType?: string;

  /**
   * File path
   */
  path?: string;

  /**
   * File URL
   */
  url?: string;
}
@Borewit
Copy link
Owner Author

Borewit commented Jan 6, 2020

Part of v5.0.0

@Borewit Borewit closed this as completed Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant