open-index/open-npm huggingface dataset:
npm package: @shalles/dark-mode
Description: simple dark-mode for your website
Author: shalles
Latest version: 1.0.3

# Shalles Dark-Mode

a simple dark-mode for your website

### Usage

```shell
yarn add @shalles/dark-mode
// or
npm install @shalles/dark-mode
```

#### Single frame page

```ts
import { DarkMode } from '@shalles/dark-mode';

new DarkMode({
  // rootElement: document.documentElement,
  enableType: 'always', // 'system' (follow system dark mode) | 'time-range' | 'always' | 'never';
  // if enableType = 'time-range', you have to set the time range of dark mode by timeRange property
  // timeRange: {
  //   begin: 2000, // 20:00
  //   end: 630, // 06:30 next day
  // }
});
```

#### Multi frames page

```ts
import { MultiFrameDarkMode, type EnableType, type TimeRange } from '@shalles/dark-mode';

new MultiFrameDarkMode({
  // rootElement: document.documentElement,
  enableType: 'time-range',
  timeRange: {
    begin: 2000, // 20:00
    end: 630, // 06:30 next day
  }
});
```

### Reference

```ts
// @shalles/dark-mode
export type TimeRange = {
  begin: number;
  end: number;
};

export type EnableType = 'system' | 'time-range' | 'always' | 'never';

export type DarkModeOptions = {
  enableType: EnableType;
  timeRange?: TimeRange;
  rootElement?: HTMLElement;
};

export { DarkMode } from './core/core';
export { MultiFrameDarkMode } from './core/frame';
```

```ts
export declare class DarkMode {
  constructor({ enableType, timeRange, rootElement }: DarkModeOptions);
  isDarkMode(): boolean | undefined;
  isTimeInRange(time: Date): boolean;
  setEnableType(enableType: EnableType, timeRange: TimeRange): void;
  setEnableTimeRange(timeRange: TimeRange): void;
}

export declare class MultiFrameDarkMode extends DarkMode {
  constructor(options: DarkModeOptions);
}
```
npm package: @shallowred/publicodes-entreprise-innovation
Description: Modèle publicodes des aides à l'innovation pour les entreprises (CIR, CII, JEI, etc.)
Author: Lucas Poulain
Latest version: 1.0.0

# Publicodes - Aides fiscales à l'innovation pour les entreprises

Modèle publicodes des aides à l'innovation pour les entreprises.

## Installation

```sh
npm install publicodes-entreprise-innovation publicodes
```

## Usage

```typescript
import rules from 'publicodes-entreprise-innovation'
import { Engine } from 'publicodes'

const engine = new Engine(rules, {
  // Important : this package must be used with the flag "automaticNamespaceDisabling" set to false
  flags: {
    automaticNamespaceDisabling: false,
  },
})
```

## Development

```sh
// Install the dependencies
npm install

// Compile the Publicodes rules
npm run compile

// Run the tests
npm run test

// Run the documentation server
npm run doc
```