open-index/open-npm huggingface dataset:
npm package: @nopcommerce/backend
Description: This (unofficial) project aims to provide an api client for the [official NopCommerce API Plugin](https://www.nopcommerce.com/en/web-api). You will need to buy this api seperately to be able to use this package.
Author: Manuel Serret
Latest version: 1.6.1

# @nopcommerce/backend (unofficial)

This (unofficial) project aims to provide an api client for the [official NopCommerce API Plugin](https://www.nopcommerce.com/en/web-api). You will need to buy this api seperately to be able to use this package.

This package provides an auto-generated client stub for the NopCommerce Backend API, including typescript type definitions.

## Installation

```bash
npm i @nopcommerce/backend
```

## Usage

```js
import {
    OpenAPI,
    AuthenticateService,
    StoreService,
} from '@nopcommerce/backend';

// use this api endpoint (make sure to only write the host here, without trailing slash)
OpenAPI.BASE = 'http://localhost:5000';

// get a nopcommerce api token
const response = await AuthenticateService.postGetToken({
    email: 'demo@demo.com',
    password: 'demo',
    is_guest: false,
});

// assign the current token to be used by the api
OpenAPI.TOKEN = response.token;

const allStores = await StoreService.getGetAll();
allStores.forEach((store) => {
    console.log(`${store.name} (${store.url})`);
});
```

## Example application

Head over to the repository [here](https://github.com/manuel3108/nopcommerce-api/tree/main/examples/backend) to see a small svelte-based demo application

## Contributing

Contributions are always welcome!
Please see [here for more details](https://github.com/manuel3108/nopcommerce-api)

## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @nopcommerce/frontend
Description: This (unofficial) project aims to provide an api client for the [official NopCommerce API Plugin](https://www.nopcommerce.com/en/web-api). You will need to buy this api seperately to be able to use this package.
Author: Manuel Serret
Latest version: 1.6.1

# @nopcommerce/frontend (unofficial)

This (unofficial) project aims to provide an api client for the [official NopCommerce API Plugin](https://www.nopcommerce.com/en/web-api). You will need to buy this api seperately to be able to use this package.

This package provides an auto-generated client stub for the NopCommerce Frontend API, including typescript type definitions.

## Installation

```bash
npm i @nopcommerce/frontend
```

## Usage

```js
import {
    OpenAPI,
    AuthenticateService,
    CustomerService,
} from '@nopcommerce/frontend';

// use this api endpoint (make sure to only write the host here, without trailing slash)
OpenAPI.BASE = 'http://localhost:5000';

// get a nopcommerce api token
const response = await AuthenticateService.postGetToken({
    email: 'demo@demo.com',
    password: 'demo',
    is_guest: false,
});

// assign the current token to be used by the api
OpenAPI.TOKEN = response.token;

// get the customer info from nopcommerce
const customerInfo = await CustomerService.getInfo();
console.log(customerInfo.email);
```

## Example application

Head over to the repository [here](https://github.com/manuel3108/nopcommerce-api/tree/main/examples/frontend) to see a small svelte-based demo application

## Contributing

Contributions are always welcome!
Please see [here for more details](https://github.com/manuel3108/nopcommerce-api)

## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @nopecha/pprint
Description: A pretty-print utility for Node.js
Author: nopecha
Latest version: 0.1.3

# @nopecha/pprint

[![npm version](https://badge.fury.io/js/@nopecha%2Fpprint.svg)](https://badge.fury.io/js/@nopecha%2Fpprint)

This package provides pretty-print logging functions for Node.js.

## Installation

```bash
npm install @nopecha/pprint
```

## Usage

Add to the top of the entry file of the project.

```typescript
import '@nopecha/pprint'
```

The above will expose the pretty-print logging functions to the global scope.

Replace `console` with `global` to color-code terminal outputs in Node.js.

Available are `trace`, `debug`, `info`, `log`, `warn`, and `error`.

```typescript
global.trace()  // Red
global.debug('this is green')
global.info('this is cyan')
global.warn('this is yellow')
global.error('this is red')
global.log('this does not have a color yet')
```

Add color to `log` messages. Color codes are prefixed with `!` in their own string.

```typescript
global.log('!r', 'this is red')
global.log('!g', 'this is green')
global.log('!b', 'this is blue')
```

Add background colors with a second color code.

```typescript
global.log('!rb', 'this is red on blue')
```

Add text styles with a third color code.

```typescript
global.log('!uwd', 'underlined')    // underlined, white on dark
global.log('!bdw', 'bolded')        // bolded, dark on white
global.log('!igw', 'italicized')    // italicized, green on white
```

Multiple colors can be used in a single log statement.

Note that all color code strings including `"!"` are zero width, except `"! "` where a color-stop code can contain a space that is left untrimmed.

```typescript
global.log('!r', 'this is red', '!', ' this is normal ', '!b', 'blue', '! ', 'normal')
```

## Copyright

&copy; 2024 [NopeCHA, LLC](https://nopecha.com/)