inital commit

This commit is contained in:
TheGreydiamond
2025-08-18 20:02:43 +02:00
parent d812e8f4a7
commit 7b45a854fe
1672 changed files with 298536 additions and 1 deletions

21
node_modules/@digasystems/ipp-browser/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 Diga Systems
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

71
node_modules/@digasystems/ipp-browser/README.md generated vendored Normal file
View File

@@ -0,0 +1,71 @@
# ipp-browser
IPP-browser is a powerful library that brings the power of Internet Printing Protocol (IPP) directly into the browser.
Inspired by the work of [William Kapke](https:///github.com/williamkapke/ipp), this library extends the use of IPP to the browser.
With this library, you can easily integrate printing to IPP-compatible network devices directly from your web applications without having to rely on additional plugins or software.
## Installation
#### npm
```sh
$ npm install ipp-browser --save
```
#### yarn
```sh
$ yarn add ipp-browser
```
## API
### Printer(url [,options])
To interact with a printer, create a `Printer` object.
**options:**
* `charset` - Specifies the value for the 'attributes-charset' attribute of requests. Defaults to `utf-8`.
* `language` - Specifies the value for the 'attributes-natural-language' attribute of requests. Defaults to `en-us`.
* `uri` - Specifies the value for the 'printer-uri' attribute of requests. Defaults to `ipp://+url.host+url.path`.
* `version` - Specifies the value for the 'version' attribute of requests. Defaults to `2.0`.
### Printer.encodeMsg(operation, msg)
Converts an IPP message object to IPP binary.
* 'operation' - There are many operations defined by IPP. See: [/lib/types.ts](https://github.com/digasystems/ipp-browser/blob/main/lib/types.ts#L1).
* 'message - A javascript object to be serealized into an IPP binary message.
### Printer.getHeaders(headers?)
Returns the heades to be included in your request
* 'headers' - The headers you want to add to the request.
## Usage/Example
#### Create a print request
```javascript
import Printer from '@digasystems/ipp-browser';
import axios from 'axios';
let url ="http://192.168.x.y:631/ipp/print"
let printer = new Printer(url);
let msg = {
"operation-attributes-tag": {
"document-format": "image/jpeg",
},
data: Buffer.from(imgBuff) ,
};
axios
.post(url, printer.encodeMsg("Print-Job",msg), {
headers: printer.getHeaders(),
})
.then((response) => {
console.log(response)
});
```
## License
MIT

5023
node_modules/@digasystems/ipp-browser/dist/ipp-browser.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

56
node_modules/@digasystems/ipp-browser/package.json generated vendored Normal file
View File

@@ -0,0 +1,56 @@
{
"name": "@digasystems/ipp-browser",
"type": "module",
"files": [
"dist"
],
"main": "./dist/ipp-browser.umd.cjs",
"module": "./dist/ipp-browser.js",
"exports": {
".": {
"import": "./dist/ipp-browser.js",
"require": "./dist/ipp-browser.umd.cjs"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/digasystems/ipp-browser.git"
},
"version": "1.0.2",
"description": "ipp-browser is a powerful library that brings the power of Internet Printing Protocol (IPP) directly into the browser. With this library, you can easily integrate printing to IPP-compatible network devices directly from your web applications without having to rely on additional plugins or software.",
"scripts": {
"build": "npx vite build",
"start": "npx vite"
},
"author": "Cristian Della Monica",
"license": "MIT",
"dependencies": {
"buffer": "^6.0.3",
"lodash": "^4.17.21",
"react": "^18.2.0",
"ua-parser-js": "^1.0.35",
"vite": "^4.4.9"
},
"devDependencies": {
"@types/lodash": "^4.14.196",
"@types/react": "^18.2.19",
"@types/react-dom": "^18.2.7",
"@types/ua-parser-js": "^0.7.36",
"typescript": "^5.1.6"
},
"bugs": {
"url": "https://github.com/digasystems/ipp-browser/issues"
},
"homepage": "https://github.com/digasystems/ipp-browser#readme",
"directories": {
"lib": "lib"
},
"keywords": [
"ipp",
"ipp-browser",
"print",
"web-print",
"web",
"browser"
]
}