open-index/open-npm huggingface dataset:
npm package: @qqsss777/oul-addon-wcm
Description: Access to windows credential manager
Author: qQsss777
Latest version: 1.1.2

# oul-addon-wcm

## Feature
You can use Windows Credential Manager in NodeJS with this package in a Windows environment.

## Installation

### Requirements
- OS Windows 10 minimum
- node >= 20
- python 3.10

### Installation and build

Install dependencies with ```npm install```. Then configure node-gyp with ```npm run configure```. You can build this addon with ```npm build```.

### Test
You can test this addon with ```npm run test```.
npm package: @qqsss777/oul-class-proxy
Description: This package is used to add proxy to your class. Three methods: - proxify your clas instance - proxify the class - use a decorator to proxify class
Author: qQsss777
Latest version: 1.0.0

# Proxy for class utils

## Features
This package is used to add proxy to your class. Three methods:
- proxify your clas instance
- proxify the class
- use a decorator to proxify class

## Installation

```
npm i @qqsss777/oul-class-proxy
```

## Usages

### Proxify instance

Proxify an instance of a class, e.g.

```
class Sample {
  counter: number;
  name = "foo";
  constructor() {
    this.counter = 7;
  }
  sayHello() {
    console.log(this.name);
  }
}
const sample = new Sample();
const sampleProxified = withProxyInstance(sample);
```

### Proxify the class
Proxify the class and every instance will use Proxy, e.g.
```
const SampleClass = withProxyClass(
class MyClass {
    counter: number;
    name = "foo";
    constructor(value: number) {
      this.counter = value;
    }
    sayHello() {
      console.log(this.name);
    }
  },
);
```

or use a decorator, don't forget to enable experimentalDecorators in your tsconfig.
```
@proxy
class MyClass {
    counter: number;
    name = "foo";
    constructor(value: number) {
      this.counter = value;
    }
    sayHello() {
      console.log(this.name);
    }
  }
```

## License
This project is licensed under the MIT License – see the LICENSE
 file for details.
npm package: @qqsss777/oul-class-singleton
Description: This package is used to transform class to singleton. Two methods: - from a function called withSingleton - from a decorator @singleton
Author: qqsss777
Latest version: 1.0.0

# Singleton libs

## Features
This package is used to transform class to singleton. Two methods:
- from a function called withSingleton
- from a decorator @singleton

## Installation

```
npm i @qqsss777/oul-class-singleton
```

## Usages

### Functionnal pattern

Export the class with the function withSingleton, e.g.

```
const SampleClass = withSingleton(
    class MyClass {
      counter: number;
      name = "foo";
      constructor(value: number) {
        this.counter = value;
      }
    },
  );

export default SampleClass;
```

### decorator pattern
First, set experimentalDecorators to true in tsconfig.json. Then add decorator @singleton at the top of the class, e.g.
```
@singleton
class MyClass {
    counter: number;
    name = "foo";
    constructor(value: number) {
      this.counter = value;
    }
}
```
## License
This project is licensed under the MIT License – see the LICENSE
 file for details.