### Install CLI tool globally with npm
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/index.html
Installs the Open Ordinal Stitch command line interface globally using npm, making the 'oostitch' command available system-wide.
```bash
npm install -g @open-ordinal/stitch
```
--------------------------------
### Install package in a project with npm
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/index.html
Installs the Open Ordinal Stitch JavaScript library as a dependency within a project using npm.
```bash
npm install @open-ordinal/stitch
```
--------------------------------
### Stitch Ordinal Parts in Memory (Metadata Configuration)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/README.md
This example demonstrates stitching ordinal parts by relying on metadata for configuration. The `stitchAsDataUrl` function automatically reads the stitching parameters (inscription IDs and content type) from the inscription's metadata, simplifying the client-side code for reconstructing data like video files.
```html
Video
```
```json
{
"stitch": {
"parts": [
"VideoPartInscriptionId01",
"VideoPartInscriptionId02",
"VideoPartInscriptionId03",
"VideoPartInscriptionId04",
"VideoPartInscriptionId05",
"VideoPartInscriptionId06"
],
"contentType": "video/mp4"
}
}
```
--------------------------------
### Stitch Ordinal Inscriptions by Sat (HTML/JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/documents/Introduction.md
This example demonstrates how to stitch multiple ordinal inscriptions (parts) located within a specific sat into a single data URL. It then assigns this data URL to an HTML video element to play the content. The parts must be inscribed in the correct order. It requires the OpenOrdinalStitchInscriptionId and the SatNumberWherePartsIsLocated.
```html
Video
```
--------------------------------
### Stitch Ordinal Inscriptions by Parent/Children (HTML/JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/documents/Introduction.md
This example shows how to stitch multiple ordinal inscriptions (parts), identified by their parent inscription ID, into a single data URL. The stitched content is then used as the source for an HTML video player. The inscriptions must be ordered correctly as children of the parent. It requires the OpenOrdinalStitchInscriptionId and the ParentInscriptionIdThatHavePartsAsChildren.
```html
Video
```
--------------------------------
### Initialize Theme and Show Page (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/modules/OOST_(Browser).html
Sets the theme from local storage and displays the application page after a short delay. It handles the case where the app might not be immediately available.
```javascript
document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";
document.body.style.display="none";
setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)
```
--------------------------------
### Initialize Theme and Show Page
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/modules.html
Sets the document's theme from local storage or defaults to 'os'. It then hides the body and shows the page content after a 500ms delay, either through the 'app' object or by removing the display style.
```javascript
Stitchdocument.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";
document.body.style.display="none";
setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)
```
--------------------------------
### Initialize StitchOptions
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/classes/OOST_(Browser).StitchOptions.html
Constructor for the StitchOptions class. It accepts an optional object to configure input file path, output file path, and maximum part size.
```typescript
new StitchOptions(options?: any): StitchOptions
```
--------------------------------
### StitchOptions Constructor (TypeScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/OOST (Browser)/classes/StitchOptions.md
Initializes a new instance of the StitchOptions class. It accepts an optional 'options' object which can include input file path, output file path, and maximum part size.
```typescript
new StitchOptions(options: any = {})
```
--------------------------------
### StitchOptions Constructor
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/OOST (Library)/classes/StitchOptions.md
Initializes a new instance of StitchOptions with optional parameters for input, output, and maximum part size.
```typescript
new StitchOptions(options?: any)
```
--------------------------------
### Google Analytics Configuration
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/classes/OOST_(Library).SplitOptions.html
Standard Google Analytics initialization code, setting up the dataLayer and configuring the tracking ID for website analytics.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XHBQC2GFXJ');
```
--------------------------------
### Stitch Ordinal Inscriptions by Code (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/documents/Introduction.md
Demonstrates how to stitch multiple ordinal inscriptions into a single file in memory within a web browser environment. It uses the Open Ordinal Stitch library and assigns the result to a video player. Requires specifying the inscription IDs and content type.
```html
Video
```
--------------------------------
### Split file using oostitch CLI
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/index.html
Demonstrates the usage of the 'oostitch split' command to divide a large file into smaller parts with a specified maximum size. The output files are named with a sequential padding format.
```bash
oostitch split -input ./test/Video.mp4 -output ./test/ -maxsize 350000
```
--------------------------------
### Stitch Ordinal Inscriptions from SAT (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/index.html
Demonstrates stitching multiple ordinal inscriptions (parts) from a SAT into a single video file. It uses the `open-ordinal-stitch` library to load parts based on a provided SAT number and content type, then sets the stitched content to a video player.
```javascript
import * as ooST from '/content/';
var data = await ooST.stitchAsDataUrl({
sat: SatNumberWherePartsIsLocated,
contentType: "video/mp4"
});
let video = document.getElementById("video");
video.setAttribute("src", data);
video.play();
```
--------------------------------
### Google Analytics Configuration
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Library).split.html
Configures Google Analytics by pushing initialization and configuration commands to the dataLayer. This allows for tracking user interactions and site performance.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-XHBQC2GFXJ');
```
--------------------------------
### SplitOptions Constructor - TypeScript
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/classes/OOST_(Library).SplitOptions.html
The constructor for the SplitOptions class, used to create an instance with specified options for file splitting. It accepts an optional object containing input file path, output file path, and maximum chunk size.
```typescript
new SplitOptions(options?: any)
```
--------------------------------
### Google Analytics Initialization
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Browser).stitchAsString.html
Initializes Google Analytics data layer and configures tracking. This snippet is standard for integrating Google Analytics into a web page.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-XHBQC2GFXJ');
```
--------------------------------
### Stitch file parts using oostitch CLI
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/index.html
Demonstrates the usage of the 'oostitch stitch' command to combine multiple file parts back into a single file. It uses a wildcard pattern to select the input parts.
```bash
oostitch stitch -input ./test/Video-* -output ./test/Video-Stitched.mp4
```
--------------------------------
### Google Analytics Initialization (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Library).log.html
Initializes Google Analytics data layer and sets up the gtag function for tracking events. This is a standard snippet for integrating Google Analytics with a web page.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag(){
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-XHBQC2GFXJ');
```
--------------------------------
### Stitch Ordinal Inscriptions from Parent/Children (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/index.html
Illustrates stitching ordinal inscriptions by referencing a parent inscription that contains child inscriptions representing the parts. The `open-ordinal-stitch` library is used to stitch these parts into a single video file, which is then loaded into a video player.
```javascript
import * as ooST from '/content/';
var data = await ooST.stitchAsDataUrl({
parent: "ParentInscriptionIdThatHavePartsAsChildren",
contentType: "video/mp4"
});
let video = document.getElementById("video");
video.setAttribute("src", data);
video.play();
```
--------------------------------
### Stitch Ordinal Inscriptions by Metadata (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/documents/Introduction.md
Shows how to stitch ordinal inscriptions using the Open Ordinal Stitch library, relying on metadata to define the stitching configuration. The function automatically reads the 'stitch' protocol from metadata, simplifying the process by omitting explicit part and contentType arguments.
```html
Video
```
--------------------------------
### Google Analytics Initialization (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/modules/OOST_(Browser).html
Initializes Google Analytics data layer and configuration. This snippet is responsible for tracking website events and user activity.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag(){
dataLayer.push(arguments);
}
gt tag('js', new Date());
gt tag('config', 'G-XHBQC2GFXJ');
```
--------------------------------
### StitchOptions Class
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/classes/OOST_(Browser).StitchOptions.html
Information about the StitchOptions class used for configuring stitch operations.
```APIDOC
## Class StitchOptions
Represents the options for stitch operations.
### Constructor
* `new StitchOptions(options?: any)`
* Creates an instance of StitchOptions.
#### Parameters
* `options` (any, optional, default={})
An object containing the input file path, output file path, and maximum size for each part.
#### Returns
* `StitchOptions`
### Properties
* `sat` (number, optional)
* Defined in browser/models/StitchOptions.ts:7
* `parent` (string, optional)
* Defined in browser/models/StitchOptions.ts:8
* `parts` (string[], optional)
* Defined in browser/models/StitchOptions.ts:9
* `contentType` (string, optional)
* Defined in browser/models/StitchOptions.ts:10
```
--------------------------------
### Ordinal Stitching Metadata Configuration (JSON)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/documents/Introduction.md
A JSON object defining the configuration for stitching ordinal inscriptions. It specifies an array of inscription IDs that constitute the parts of a file and the content type of the reassembled file.
```json
{
"stitch": {
"parts": [
"VideoPartInscriptionId01",
"VideoPartInscriptionId02",
"VideoPartInscriptionId03",
"VideoPartInscriptionId04",
"VideoPartInscriptionId05",
"VideoPartInscriptionId06"
],
"contentType": "video/mp4"
}
}
```
--------------------------------
### stitchAsString
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Browser).stitchAsString.html
Stitches the provided options into a string. This is an asynchronous operation that returns a Promise.
```APIDOC
## stitchAsString
### Description
Stitches the provided options into a string.
### Method
Not specified (likely a client-side JavaScript function)
### Endpoint
Not applicable (client-side function)
### Parameters
#### Path Parameters
None
#### Query Parameters
None
#### Request Body
None
### Request Example
```javascript
// Example of calling the function (assuming it's globally available)
stitchAsString({ /* StitchOptions object */ }).then(result => {
console.log(result);
});
```
### Response
#### Success Response (Promise resolves)
- **string | undefined**: A promise that resolves to a string if successful, or undefined if not.
#### Response Example
```json
"stitched_string_output"
```
#### Error Response
None explicitly defined in the provided text, but the function can return `undefined`.
```
--------------------------------
### Stitch Files Together (TypeScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/OOST (Library)/functions/stitch.md
The stitch function stitches multiple files into a single output file. It takes an options object with an input pattern and output file path. It returns a Promise.
```typescript
stitch(options: StitchOptions): Promise
```
--------------------------------
### Split File using split() - TypeScript
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/OOST (Library)/functions/split.md
This TypeScript function splits a file into smaller parts. It requires an options object with 'inputFile', 'outputDirectory', and 'maxSize' properties. It returns a promise that resolves with an array of strings, each representing the path to a split file part. This function is part of the OOST (Open Ordinal Stitch) library.
```TypeScript
import { SplitOptions } from "../interfaces/SplitOptions";
// Assuming SplitOptions is defined elsewhere with properties like:
// interface SplitOptions {
// inputFile: string;
// outputDirectory: string;
// maxSize: number; // in bytes
// }
// Placeholder for the actual split function implementation
async function split(options: SplitOptions): Promise {
console.log(`Splitting file: ${options.inputFile} into directory: ${options.outputDirectory} with max size: ${options.maxSize} bytes`);
// Actual file splitting logic would go here...
// This is a mock return value for demonstration:
const splitFilePaths = [
`${options.outputDirectory}/part1.bin`,
`${options.outputDirectory}/part2.bin`
];
return Promise.resolve(splitFilePaths);
}
```
--------------------------------
### File Splitting API
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Library).split.html
Provides functionality to split a given file into multiple smaller parts based on specified size constraints.
```APIDOC
## POST /api/split
### Description
Splits a file into smaller parts based on the provided options. This function is asynchronous and returns a promise.
### Method
POST
### Endpoint
/api/split
### Parameters
#### Request Body
- **options** (SplitOptions) - Required - An object containing the input file path, output directory, and maximum size for each part.
### Request Example
```json
{
"options": {
"inputFile": "path/to/your/file.txt",
"outputDirectory": "path/to/output/directory",
"maxPartSize": 10485760
}
}
```
### Response
#### Success Response (200)
- **result** (string[]) - A promise that resolves with an array of strings, where each string is the path to a created file part.
#### Response Example
```json
{
"result": [
"path/to/output/directory/part_1.txt",
"path/to/output/directory/part_2.txt"
]
}
```
```
--------------------------------
### Google Analytics Initialization (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/modules/OOST_(Library).html
Initializes Google Analytics (gtag.js) by defining the dataLayer and configuring analytics with a specific measurement ID. This is a standard way to integrate analytics into a web page.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XHBQC2GFXJ');
```
--------------------------------
### stitch
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Library).stitch.html
Stitches multiple files together into a single output file based on the provided options.
```APIDOC
## stitch
### Description
Stitches multiple files together into a single output file based on the provided options.
### Method
POST
### Endpoint
/open-ordinal/open-ordinal-stitch/stitch
### Parameters
#### Request Body
- **options** (StitchOptions) - Required - An object containing the input pattern and output file path.
### Request Example
```json
{
"options": {
"inputPattern": "*.txt",
"outputFile": "combined.txt"
}
}
```
### Response
#### Success Response (200)
- **message** (string) - Indicates the stitching process is complete.
#### Response Example
```json
{
"message": "Files stitched successfully."
}
```
```
--------------------------------
### stitchAsString()
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/OOST (Browser)/functions/stitchAsString.md
Stitches the provided options into a string representation.
```APIDOC
## stitchAsString()
### Description
Stitches the provided options into a string.
### Method
Not applicable (this is a function, not an HTTP endpoint)
### Endpoint
Not applicable
### Parameters
#### Options
- **options** (StitchOptions) - Required - The options to be stitched.
### Returns
`Promise`
A promise that resolves to a string if successful, or undefined if not.
```
--------------------------------
### Stitch Ordinal inscriptions using metadata in JavaScript
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/index.html
This JavaScript code snippet shows how to stitch ordinal inscriptions using metadata configuration. By omitting the 'parts' and 'contentType' arguments, the function reads stitching configuration from the inscription's metadata. The stitched data is then used to set the source of a video player.
```javascript
import * as ooST from '/content/';
var data = await ooST.stitchAsDataUrl();
let video = document.getElementById("video");
video.setAttribute("src", data);
video.play();
```
--------------------------------
### Stitch Ordinal inscriptions to data URL in JavaScript
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/index.html
This JavaScript code snippet demonstrates how to stitch multiple ordinal inscriptions into a single data URL. It uses the Open Ordinal Stitch library to process an array of inscription IDs and specifies the content type for the stitched data. The resulting data URL is then used to set the source of a video player.
```javascript
import * as ooST from '/content/';
var data = await ooST.stitchAsDataUrl({
parts: [
"VideoPartInscriptionId01",
"VideoPartInscriptionId02",
"VideoPartInscriptionId03",
"VideoPartInscriptionId04",
"VideoPartInscriptionId05",
"VideoPartInscriptionId06"
],
contentType: "video/mp4"
});
let video = document.getElementById("video");
video.setAttribute("src", data);
video.play();
```
--------------------------------
### Split File Functionality
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Library).split.html
The 'split' function takes SplitOptions as input and returns a promise resolving to an array of strings, each representing a part of the split file. This function is defined in OOST.ts.
```typescript
split(options: SplitOptions): Promise
```
--------------------------------
### stitchAsDataUrl
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Browser).stitchAsDataUrl.html
Stitches the provided options into a data URL. This function is designed for browser environments and returns a Promise containing the data URL string or undefined.
```APIDOC
## stitchAsDataUrl
### Description
Stitches the provided options into a data URL.
### Method
(Not specified, typically POST or GET depending on implementation)
### Endpoint
(Not specified)
### Parameters
#### Path Parameters
None
#### Query Parameters
None
#### Request Body
- **options** (StitchOptions) - Required - The options to be stitched. This parameter is an object conforming to the StitchOptions interface.
### Request Example
```json
{
"options": {
"elementId": "myElement",
"width": 800,
"height": 600
}
}
```
### Response
#### Success Response (200)
- **(string | undefined)** - A promise that resolves to a string representing the data URL if the stitching is successful, or undefined if it fails.
#### Response Example
```json
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."
```
#### Error Response
(Specific error responses are not detailed in the provided text.)
```
--------------------------------
### Stitch Ordinal Inscriptions by SAT in JavaScript
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/README.md
Stitches multiple ordinal inscriptions (parts) from a specified 'sat' into a single data URL, suitable for direct use in media players. This method requires inscriptions to be in the correct order. It's implemented using JavaScript within an HTML context.
```javascript
import * as ooST from '/content/';
var data = await ooST.stitchAsDataUrl({
sat: SatNumberWherePartsIsLocated,
contentType: "video/mp4"
});
let video = document.getElementById("video");
video.setAttribute("src", data);
video.play();
```
--------------------------------
### stitchAsDataUrl Function Signature (TypeScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Browser).stitchAsDataUrl.html
Defines the signature for the stitchAsDataUrl function, which takes StitchOptions as input and returns a promise resolving to a string or undefined. This function is responsible for creating a data URL from the provided options.
```typescript
stitchAsDataUrl(options: StitchOptions): Promise
```
--------------------------------
### stitchAsArrayBuffer
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Browser).stitchAsArrayBuffer.html
Stitches the provided options into a buffer. This function takes StitchOptions and returns a Promise resolving to an ArrayBuffer or undefined.
```APIDOC
## POST /stitchAsArrayBuffer
### Description
Stitches the provided options into a buffer. Returns a promise that resolves to an ArrayBuffer if successful, or undefined if not.
### Method
POST
### Endpoint
/stitchAsArrayBuffer
### Parameters
#### Request Body
- **options** (StitchOptions) - Required - The options to be stitched.
### Request Example
```json
{
"options": {
"data": "some data",
"format": "json"
}
}
```
### Response
#### Success Response (200)
- **ArrayBuffer | undefined** - A buffer if successful, or undefined if not.
#### Response Example
```json
{
"buffer": ""
}
```
```
--------------------------------
### stitchAsString Function
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Browser).stitchAsString.html
Stitches provided options into a string. It takes StitchOptions as input and returns a Promise resolving to a string or undefined. The function is defined in browser/OOST.Core.ts.
```typescript
stitchAsString(options: StitchOptions): Promise[]
```
--------------------------------
### Google Analytics Configuration (JavaScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/documents/ChangeLog.html
Configures Google Analytics by initializing the dataLayer and defining the gtag function to send tracking data. This snippet is typically used for website analytics and event tracking.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-XHBQC2GFXJ');
```
--------------------------------
### Stitch Ordinal Inscriptions by Parent/Children in JavaScript
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/README.md
Stitches multiple ordinal inscriptions (parts) by referencing a parent inscription ID that holds these parts as children. The resulting stitched content is provided as a data URL for media playback. Inscriptions must be ordered correctly. This is demonstrated in an HTML file using JavaScript.
```javascript
import * as ooST from '/content/';
var data = await ooST.stitchAsDataUrl({
parent: "ParentInscriptionIdThatHavePartsAsChildren",
contentType: "video/mp4"
});
let video = document.getElementById("video");
video.setAttribute("src", data);
video.play();
```
--------------------------------
### Stitch Function Definition (TypeScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Library).stitch.html
Defines the 'stitch' function which accepts StitchOptions and returns a Promise. This function is responsible for combining multiple files into one based on provided configuration.
```typescript
stitch(options: StitchOptions): Promise[]
```
--------------------------------
### stitchAsString() - TypeScript Function
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/markdown/OOST (Browser)/functions/stitchAsString.md
Stitches the provided options into a string. It takes StitchOptions as input and returns a Promise resolving to a string or undefined.
```typescript
stitchAsString(options: StitchOptions): Promise
```
--------------------------------
### Log Function (TypeScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Library).log.html
A logging function that outputs a message to the console, with an option to add a new line. It is defined within the OOST library.
```typescript
log(message: string, newLine?: boolean): void[]
```
--------------------------------
### stitchAsArrayBuffer Function (TypeScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Browser).stitchAsArrayBuffer.html
Stitches the provided options into an ArrayBuffer. This function is part of the OOST.Core module and returns a Promise resolving to an ArrayBuffer or undefined. It is defined in browser/OOST.Core.ts.
```TypeScript
stitchAsArrayBuffer(options: StitchOptions): Promise
```
--------------------------------
### Handle Error Message with Optional New Line (TypeScript)
Source: https://github.com/open-ordinal/open-ordinal-stitch/blob/develop/docs/html/functions/OOST_(Library).err.html
The 'err' function is designed to output error messages. It accepts a string message and an optional boolean to indicate if a new line should follow. It is defined within the OOST library.
```typescript
err(message: string, newLine?: boolean): void[]
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.