@contracthero/common
v1.1.18
Published
`@contracthero/common` contains utility functions that are used across the ContractHero platform.
Downloads
498
Readme
Common
@contracthero/common
contains utility functions that are used across the ContractHero platform.
ocr
partionBlocks
Simplifying textract result by grouping and reording blocks in similar positions (like columns) into the same group.
parser
Different kind of data parser especially used to convert data from raw contract PDFs into common formats.
Document:
- acceptedMimetypeExtensionMap: This constant provides a mapping of accepted MIME types to their corresponding file extensions. It can be used to validate file types based on their MIME type or file extension and ensure that only supported types are processed.
- isAcceptedMimetype: Checks if mimetype is one of the accepted mimetypes
Installation
Use npm or yarn to install @contracthero/common
npm install @contracthero/common
Type definitions for TypeScript are included.
Release a new version
Currently, new versions are not automatically published.
When publishing a version, run npm run release
. This publishes a new version of the package to our private NPM registry.