TODO
npm install @kapitchi/bb-content-copy
TODO
- CopyService
Content copy service
- HttpMethod :
Object
- FilesystemMethod :
Object
Content copy service
Kind: global class
Param | Type | Description |
---|---|---|
copyServiceOpts | Object |
|
copyServiceOpts.progressUpdatePeriod | number |
How often is copyServiceProgress.next() is called |
copyServiceMessagePublisher | Object |
|
copyServiceMessagePublisher.next | function |
Copy source to destination
Kind: instance method of CopyService
Param | Type | Description |
---|---|---|
params | Object |
|
params.id | string |
Unique copy operation ID |
params.source | FilesystemMethod | HttpMethod |
|
[params.source.size] | number |
Content size (if not provided it will be detected) |
[params.source.mime] | number |
MIME type of the content (if not provided it will be detected) |
params.destination | FilesystemMethod | HttpMethod |
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
type | string |
Value: http |
url | string |
|
method | string |
HTTP method |
headers | Object |
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
type | string |
Value: filesystem |
path | string |
File path |
Run the command below before release.
npm run build
npm test
Please feel free to submit an issue/PR or contact me at [email protected].