open-index/open-npm huggingface dataset:
npm package: @ircc-ca/ds-sdc-angular
Description: Angular components for Digital Journey Labs Design System
Author: IRCC-ca
Latest version: 1.1.0

# `ds-sdc-angular`

**UNDER DEVELOPMENT and not ready to be used** 

This package contains Angular components for the Digital Journey Labs Design System

## Getting started 

To install the IRCC Digital Journey Labs Design System Angular components, you will need to run the following command using [npm](https://www.npmjs.com/):

```
npm install --save-dev @ircc-ca/ds-sdc-angular
```

## Usage

| Package name  | Description  |   |
|---|---|---|
| [`@ircc-ca/ds-sdc-angular/button`](./button/)  | Angular custom button  |   |
| [`@ircc-ca/ds-sdc-angular/checkbox`](./checkbox/)  | Angular custom checkbox  |   |
| [`@ircc-ca/ds-sdc-angular/footer`](./footer/)  | Angular custom footer  |   |
| [`@ircc-ca/ds-sdc-angular/header`](./header/)  | Angular custom header  |   |
| [`@ircc-ca/ds-sdc-angular/icon`](./icon/)  |  Angular custom icon |   |
| [`@ircc-ca/ds-sdc-angular/link`](./link/)  | Angular custom link  |   |
| [`@ircc-ca/ds-sdc-angular/radiobutton`](./radio-button/)  | Angular custom radio-button  |   |

Include the `CUSTOM_ELEMENTS_SCHEMA` in the modules that use the components.

To use a component, you can import it in the component module from the package: 

```typescript
import { JLButtonModule } from '@ircc-ca/ds-sdc-angular/button';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';

@NgModule({
    declarations: [
        AppComponent,
    ],
    imports: [
        BrowserModule,
        FormsModule,
        HttpClientModule,
        ReactiveFormsModule,
        JLButtonModule,
        AppRoutingModule,
    ],
    providers: [],
    schemas: [CUSTOM_ELEMENTS_SCHEMA],
    bootstrap: [AppComponent],
})
export class AppModule {}

```
npm package: @ircc-ca/ds-sdc-core
Description: Core styles for Digital Journey Journey Labs Design System
Author: IRCC-ca
Latest version: 1.5.10

# `ds-sdc-core`

This package contains the theming functionality for the Journey Design System

## Getting started

To install the IRCC Digital Journey Labs Design System styles, you will need to run the following command using [npm](https://www.npmjs.com/):

```
npm install --save-dev @ircc-ca/ds-sdc-core
```

## Usage

In your root-level stylesheet, initialize the design system with:

```scss
@use '~@ircc-ca/ds-sdc-core/index' as ircc-ds;
@include ircc-ds.theme-init-required(ircc-ds.palette-journeylab(), default, large, light);
@include ircc-ds.element-styles();
```
Alternatively, you can pass in `dark` instead of `light` as the final parameter of `theme-init-required()` to initialize only the dark color scheme, or `system` if you would like to default to the user's operating system settings.

A list of elements can be passed to `element-styles()` to include, should only certain element styles be desired.


### Element style tokens and layouts

- [Button](./tokens/button/button.md)
- [Checkbox](./tokens/checkbox/checkbox.md)
- [Global](./tokens/global/global.md)
- [Link](./tokens/link/link.md)
- [Radiobutton](./tokens/radiobutton/radiobutton.md)

#### Partials

- [Disable](./tokens/partial/disable.md)
- [Focus](./tokens/partial/focus.md)

- [Layout](./layout/layout.md)
- [Paint](./paint/paint.md)
- [Snapins material](./snapins/_material.scss)

### Constant tokens

- [Common size constants](./tokens/_sizes.scss)
- [Template constants](./tokens/_template-const.scss)
- [Font sizes and families](./tokens/_text.scss)

### Typography

- [Fontawesome imports and declarations](./typography/_fa-wrapper.scss)
- [Heading and Body imports and declarations](./typography/_fonts.scss)
- [Typography levels and usage declarations](./typography/_typography.scss)

### Utilities

- [Color mode and token](./util/_color.scss)
- [Size mode and token](./util/_size.scss)
- [Theming utilities for contextual css](./util/_theme.scss)
- [Device capabilities and user contextual settings](./util/_device.scss)
- [Additional Integer related math](./util/_integer.scss)
- [Additional functions for Sass Lists](./util/_list.scss)
- [Additional functions for Sass Strings](./util/_string.scss)

## Notes

A css reset is not currently expected or required, if you are experiencing an unexpected visual bug, please submit a Bug.
This package is intended to apply with minimal effort based on HTML tags and minimal use of class selectors to reduce overhead in existing projects.
As this project is a work in progress, usage of multiple design systems is recommended, so long as they don't visually conflict.
If you find an issue, [please submit a Bug or Feature Request on our Github](https://github.com/IRCC-ca/ds-sdc/issues/new/choose) and add the `core` tag.
npm package: @ircg/core
Description: Core types and utilities for IRCG SDK
Author: Isar Ramses
Latest version: 1.23.7

# @ircg/core

Core types, utilities, and base client for IRCG SDK packages.

This package provides shared functionality used by all IRCG service SDKs:
- Common TypeScript types
- Base HTTP client
- Error handling classes
- Utility functions

## Installation

This package is typically installed as a dependency of other IRCG SDK packages and not used directly.

```bash
pnpm add @ircg/core
```

## Usage

```typescript
import { BaseClient, IRCGError } from '@ircg/core';

// Extend BaseClient for your service
class MyServiceClient extends BaseClient {
  // Your implementation
}
```

## License

MIT
npm package: @ircg/uss
Description: URL Shortener Service SDK for IRCG
Author: Isar Ramses
Latest version: 1.23.7

# @ircg/uss

URL Shortener Service (USS) SDK for IRCG.

## Installation

```bash
pnpm add @ircg/uss
```

## Usage

```typescript
import { USSClient } from '@ircg/uss'

// Initialize the client
const uss = new USSClient({
	apiKey: 'your-api-key',
	baseUrl: 'https://ircg.dev', // optional, defaults to https://ircg.dev
})

// Create a shortened URL
const result = await uss.create({
	url: 'https://example.com/very/long/url',
})

console.log(result.shortenedUrl.urlKey) // e.g., "abc123"
console.log(`Short URL: https://ircg.dev/l/${result.shortenedUrl.urlKey}`)

// Get all shortened URLs
const urls = await uss.getAll({
	page: 1,
	amount: 50,
	ascending: false,
	fields: ['urlKey', 'originalUrl', 'id', 'visits', 'active', 'createdAt'],
})

console.log(urls.shortenedUrls)
console.log(`Total: ${urls.totalAmount}`)

// Get a specific shortened URL by key
const url = await uss.getByKey('abc123')
console.log(url.shortenedUrl.originalUrl)

// Delete a shortened URL
await uss.delete('abc123')
```

## API Reference

### `USSClient`

#### Constructor

```typescript
new USSClient(config: IRCGClientConfig)
```

- `config.apiKey` (required): Your IRCG API key
- `config.baseUrl` (optional): Base URL for the API (default: 'https://ircg.dev')

#### Methods

##### `create(data)`

Create a shortened URL.

- `data.url` (required): The URL to shorten
- `data.fields` (required): Array of fields to include in the response
- `data.lang` (optional): Language for error messages ('es' | 'en')

Returns: `Promise<{ shortenedUrl?, error? }>`

##### `getAll(options)`

Get all shortened URLs with pagination.

- `options.page` (optional): Page number (default: 1)
- `options.amount` (optional): Items per page (default: 50)
- `options.ascending` (optional): Sort order (default: false)
- `options.fields` (required): Array of fields to include in the response
- `options.lang` (optional): Language for error messages ('es' | 'en')

Returns: `Promise<{ shortenedUrls?, totalAmount?, error? }>`

##### `getByKey(urlKey, fields)`

Get a shortened URL by its key.

- `urlKey` (required): The URL key
- `fields` (required): Array of fields to include in the response

Returns: `Promise<{ shortenedUrl?, error? }>`

##### `delete(urlKey)`

Delete a shortened URL.

- `urlKey` (required): The URL key to delete

Returns: `Promise<DeleteShortenedUrlResponse>`

## Error Handling

```typescript
import { USSClient } from '@ircg/uss'
import { IRCGError, IRCGAuthenticationError, IRCGValidationError } from '@ircg/core'

const uss = new USSClient({ apiKey: 'your-api-key' })

try {
	await uss.create({ url: 'invalid-url' })
} catch (error) {
	if (error instanceof IRCGAuthenticationError) {
		console.error('Invalid API key')
	} else if (error instanceof IRCGValidationError) {
		console.error('Validation error:', error.details)
	} else if (error instanceof IRCGError) {
		console.error('IRCG error:', error.message)
	}
}
```

## License

MIT
npm package: @ircrp/bchswap-sdk-testnet
Description: 🛠 An SDK for building applications on top of Smart BCH testnet.
Latest version: 2.4.0

# Pancakeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @irdnis/esbuildnx
Description: Esbuild plugin for Nx
Author: Brian McBride
Latest version: 0.0.4-rc8

# esbuildnx Plugin

The esbuild Plugin contains generators and executors for compiling a node app using [esbuild](https://esbuild.github.io/)

## Installing the esbuildnx Plugin

Installing the esbuildnx plugin to a workspace can be done with the following:

```shell
#yarn
yarn add -D @anatine/esbuildnx
```

```shell
#npm
npm install -D @anatine/esbuildnx
```

## Application Setup

This plugin is designed to be used with an existing Node application. Target an existing node app and run the setup.
```shell
nx generate @anatine/esbuildnx:setup <node-app>
```

If you want to replace the existing build command with esbuild, use the `--override` flag.
```shell
nx generate @anatine/esbuildnx:setup <node-app> --override 
```

## Commands

### esbuild

After a node project is setup, execute a build with the command:
```shell
nx esbuild <node-app>
```

#### esbuild options:  `external: [ ... ]`

Not every module can go through treeshaking and packing.
Esbuild provides an option called `external` that contains an array of package name strings.

This plugin will take all dependencies in the `package.json`, 
and merge them with any external files defined in the app `esbuild.json` file.
These node_modules will be copied into the dist directory at build time and will not be packed into the single .js file.

The entire compiled dist folder can be deployed into a docker container with minimum node_modules.

One of the goals of this plugin will be to grow and maintain a list of npm modules that can't be bundled by esbuild 
and automatically add them to the external file list.

#### watch
The `--watch` flag is also available. In watch mode, the `node_module` files are not copied over.
```shell
nx esbuild <node-app> --watch
```

### Overridden build

If the setup was run with the `--overwrite` flag, build your node app as normal within the nx environment.
```shell
nx build <node-app>
```