UOR Math-JS Library A JavaScript implementation of the Prime Framework for universal number representation
Methods
(inner) configure(options) → {Object}
Update configuration with custom settings
Parameters:
Name | Type | Description |
---|---|---|
options | Object | Configuration options to update |
Returns:
The updated configuration object
- Type:
- Object
(inner) createAsync(operation, options) → {Promise}
Creates an asynchronous processor for expensive operations
Parameters:
Name | Type | Description |
---|---|---|
operation | function | The operation to perform asynchronously |
options | Object | Options for the async operation |
Returns:
A promise that resolves with the operation result
- Type:
- Promise
(inner) createStream(transformer) → {Object}
Creates a stream processor for handling sequences of UniversalNumbers
Parameters:
Name | Type | Description |
---|---|---|
transformer | function | Function to apply to each number in the stream |
Returns:
A stream processing object with methods: pipe, map, filter, reduce
- Type:
- Object
(inner) getPlugin(name) → {Object}
Get a registered plugin by name
Parameters:
Name | Type | Description |
---|---|---|
name | string | The name of the plugin to retrieve |
Returns:
The plugin instance
- Type:
- Object
(inner) registerPlugin(name, plugin)
Register a plugin with the library
Parameters:
Name | Type | Description |
---|---|---|
name | string | Unique name for the plugin |
plugin | Object | Plugin implementation |