open-index/open-npm huggingface dataset:
npm package: @kcaitech/path
Description: kcaitech path module
Author: kcaitech.com
Latest version: 0.1.4

# Path

@kcaitech/path is a TypeScript library for path operations, supporting Difference, Union, Intersection, and Xor operations between paths.

## Installation

You can install Path via npm:

```bash
npm install @kcaitech/path

## Example
```ts
import { Path, OpType } from '@kcaitech/path';

const path0 = new Path('M0 0L100 0L100 100L0 100L0 0Z');
const path1 = new Path('M100 50L150 50L150 150L50 150L50 100L0 100L0 0L100 0L100 50Z');

// Perform union operation
path1.op(path0, OpType.Union);

// Output the SVG string of the result path
console.log(path1.toSVGString());
// Output: 'M100 50L150 50L150 150L50 150L50 100L0 100L0 0L100 0Z'
```
## API Reference
### Path
* constructor(svgString: string): Creates a new Path object from an SVG path string.

* op(other: Path, opType: OpType): Performs the specified operation (Difference, Union, Intersection, Xor) between the current path and another path.

* translate(x: number, y: number): Translates the path.

* transform(matrix: { map: (x: number, y: number) => Point }): Applies matrix transformation.

* clone(): Path: Returns a copy of the current path.

* toSVGString(): string: Returns the SVG string representation of the path.

### OpType
* Difference: Difference operation.

* Union: Union operation.

* Intersection: Intersection operation.

* Xor: Exclusive OR operation.

### TODO
The stroke feature adds stroke effects to paths. Not yet implemented. Currently using PathKit's implementation as a replacement, which requires initialization before use:

```ts
// Initialize PathKit
await Path.init();

// Create path
const path = new Path('M0 0L100 0L100 100L0 100Z');

// Add stroke
const strokePath = path.stroke({
    width: 10,
    join: 'miter',
    cap: 'butt',
    miterLimit: 4
});
```

## LICENSE
MIT
npm package: @kcak11/file-transformer
Description: A utility to transform file contents for easy upload / storage over cloud.
Author: K.C.Ashish Kumar
Latest version: 1.2.0

<img src="https://raw.githubusercontent.com/npx-bin/misc/master/transform_logo.png" width="100%"/>

# file-transformer
A utility to transform file contents for easy upload / storage over cloud

**Usage:**

### via npx ( Recommended: Gets the latest & greatest code everytime you run the command )

```
$ npx npx-bin/file-transformer <filename_or_path>
```

### via npm (Installs globally and doesn't require download each time)

Step 1: Install the package globally
```
$ npm i -g @kcak11/file-transformer
```

Step 2: Run the command
```
$ file-transformer <filename_or_path>
```
<br/>

**Requires:**

 - npm@5.2.0 (or greater) version to be installed

> Note: _You can check the version using the following command:_
```
$ npm --version
```
<br/>

## License:  [MIT License](https://mit-license.kcak11.com)
&copy; 2019 [kcak11.com](https://www.kcak11.com "Ashish's Web")
npm package: @kcak11/myip
Description: A Utility to fetch IP Addresses
Author: K.C.Ashish Kumar
Latest version: 5.0.7

<img src="https://raw.githubusercontent.com/npx-bin/misc/master/myip_logo.png" width="100%" />

# MyIP - A Utility to fetch IP Addresses

## Installation:
```
$ npm i -g @kcak11/myip
```

### Usage as Command Line Interface (CLI):
```
$ myip
```

The above will output the current IP addresses associated with your machine as below:

```
                                                          
 Following are the IP Addresses for your machine:         
                                                          
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 |       IP Address     | Usage in a web-browser        | 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 |      xyz.pqr.a.b     | http://xyz.pqr.a.b            | 
 |   xyz.pq.abc.def     | http://xyz.pq.abc.def         | 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
                                                          
 External(public) IP: XXX.YY.ZZ.AAA                  
                                                          
```

## Usage in Node Scripts
```
const myip=require("@kcak11/myip");
let listOfIP = myip(); // listOfIP will be an array containing the IP addresses.
console.log(listOfIP);

let externalIP = require("@kcak11/myip/external");
externalIP().then((data) => {
  console.log("External IP: " + data.myip);
  console.log("Country: " + data.country);
});
```

Output:
```
["xyz.pqr.a.b","xyz.pq.abc.def"]
External IP: XXX.YY.ZZ.AAA
Country: CC
```

## License:  [MIT License](https://mit-license.kcak11.com)
&copy; 2023 [kcak11.com](https://www.kcak11.com "Ashish's Web")
npm package: @kcak11/sysinfo
Description: System Information
Author: K.C.Ashish Kumar
Latest version: 2.0.1

# SysInfo
System Information

---

## Usage from command line

```
$> npx @kcak11/sysinfo
```

or

```
$> npm i -g @kcak11/sysinfo
$> sysinfo
```

---

## Usage in code

```
npm i @kcak11/sysinfo
```

```
var sysinfo=require("@kcak11/sysinfo");
console.log(sysinfo.info); //Information contained in an Object.
console.log(sysinfo.text); //Information in plain text format.
```

---

## License MIT (https://mit-license.kcak11.com)