`@contracthero/common` contains utility functions that are used across the ContractHero platform.
npm install @contracthero/common@contracthero/common contains utility functions that are used across the ContractHero platform.
Simplifying textract result by grouping and reording blocks in similar positions (like columns) into the same group.
Different kind of data parser especially used to convert data from raw contract PDFs into common formats.
- 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
- extractTextFromLexical: This function extract text from simple lexical string.
Use npm or yarn to install @contracthero/common
``bash`
npm install @contracthero/common
Type definitions for TypeScript are included.
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.