open-index/open-npm huggingface dataset:
npm package: @socialgouv/get-html
Description: Get some URL HTML content with puppeteer
Latest version: 1.1.1

# socialgouv/dashlord-actions/get-html

<p align="center">
  <a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache--2.0-yellow.svg" alt="License: Apache-2.0"></a>
  <a href="https://www.npmjs.com/package/@socialgouv/get-html"><img src="https://img.shields.io/npm/v/@socialgouv/get-html.svg" alt="Npm version"></a> 
  <br>
  <a href="https://www.npmjs.com/package/@socialgouv/get-html"><img src="https://nodei.co/npm/@socialgouv/get-html.png?downloads=true&downloadRank=true&stars=true" alt="Npm banner"></a> 
</p>

Get HTML content from any URL, single-page or not, using [puppeteer](https://github.com/puppeteer/puppeteer)

## Usage

### npm

```js
const { getHTML } = require("@socialgouv/get-html");

getHTML("https://wikipedia.org").then(console.log);
```

### github-action

```yaml
jobs:
  html:
    steps:
      - uses: "socialgouv/dashlord-actions/get-html@v1"
        with:
          url: https://wikipedia.org
          # optionals
          language: fr
          output: result.html
      - name: demo
        run: |
          cat result.html
```
npm package: @socialgouv/hasura-permissions-viewer
Description: convert hasura permissions definition to readable HTML
Latest version: 1.2.3

# hasura-permissions-viewer [![](https://img.shields.io/npm/v/@socialgouv/hasura-permissions-viewer)](https://www.npmjs.com/package/@socialgouv/hasura-permissions-viewer)

Generate an HTML overview of tables permissions from hasura metadata.

![demo](./demo.png)

## Usage

Drop the result of from Hasura console `Export metadata` into the demo : https://socialgouv.github.io/hasura-permissions-viewer

Or use as npm module :

```js
const toHtml = require("@socialgouv/hasura-permissions-viewer");

const metadata = require("./metadata.json");

// to get the formatted HTML tables
console.log(toHtml(metadata));
```
npm package: @socialgouv/helm-schema
Description: [JSON Schema](https://json-schema.org) generator for your [HELM charts](https://helm.sh).
Latest version: 1.2.4

# @socialgouv/helm-schema ![npm (scoped)](https://img.shields.io/npm/v/%40socialgouv/helm-schema)

[JSON Schema](https://json-schema.org) generator for your [HELM charts](https://helm.sh).

Demo : https://socialgouv.github.io/helm-schema

## Usage

Example `values.yaml`, following [JSDoc standards](https://devhints.io/jsdoc)

```yaml
# @param {object} smtp Your SMTP setup
smtp:
  # @param {string} host SMTP hostname
  host:
  # @param {number} [port] SMTP port
  port: 587

# Setup your securityContext to reduce security risks, see https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
# @param {https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.24.0/_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext} [securityContext]
securityContext:
```

To generate a JSON schema from your `values.yaml` :

```sh
npx @socialgouv/helm-schema -f values.yaml
```

Or via TS :

```js
import { toJsonSchema } from "@socialgouv/helm-schema";

import yaml from "./values.yaml";

const schema = toJsonSchema(yaml);
```

You get such JSON schema in result :

```json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": ["smtp"],
  "properties": {
    "smtp": {
      "type": "object",
      "title": "Your SMTP setup",
      "required": ["host"],
      "properties": {
        "host": {
          "type": "string",
          "title": "SMTP hostname"
        },
        "port": {
          "type": "number",
          "title": "SMTP port",
          "default": "587"
        }
      }
    },
    "securityContext": {
      "$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.24.0/_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext",
      "description": "Setup your securityContext to reduce security risks, see https://kubernetes.io/docs/tasks/configure-pod-container/security-context/"
    }
  }
}
```

This schema can then be used with your favorite editor for HELM values validation.

⚠️ Be sure to add an `$id` to the schema if its meant to be referenced from other schemas

## Dev

update snapshots : `yarn snapshots`

## Todo

- ~~multiline comments~~
- sections
- infer types from default values
- ~~handle arrays~~
npm package: @socialgouv/jours-feries
Description: Les jours feriés Français
Latest version: 2.0.0

# jours-feries

![📆⛱️](https://github.com/SocialGouv/jours-feries/workflows/%F0%9F%93%86%E2%9B%B1%EF%B8%8F/badge.svg) [![codecov](https://codecov.io/gh/SocialGouv/jours-feries/branch/master/graph/badge.svg)](https://codecov.io/gh/SocialGouv/jours-feries)  
[![NPM](https://nodei.co/npm/@socialgouv/jours-feries.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/@socialgouv/jours-feries)

JavaScript / npm port of [jours-feries-france](https://github.com/AntoineAugusti/jours-feries-france) by @AntoineAugusti

## Usage

```js
import joursFeries from "@socialgouv/jours-feries";

console.log(joursFeries(2018));

// include jours feries alsace-moselle
console.log(joursFeries(2018, { alsace: true }));
```

⚠️ Les dates renvoyées sont de vrais objets JavaScript `Date`

```json
{
  "Jour de l'an": "2017-12-31T23:00:00.000Z",
  "Fête du travail": "2018-04-30T22:00:00.000Z",
  "Victoire des alliés": "2018-05-07T22:00:00.000Z",
  "Fête Nationale": "2018-07-13T22:00:00.000Z",
  "Assomption": "2018-08-14T22:00:00.000Z",
  "Toussaint": "2018-10-31T23:00:00.000Z",
  "Armistice": "2018-11-10T23:00:00.000Z",
  "Noël": "2018-12-24T23:00:00.000Z",
  "Lundi de Pâques": "2018-04-01T22:00:00.000Z",
  "Ascension": "2018-05-09T22:00:00.000Z",
  "Lundi de Pentecôte": "2018-05-20T22:00:00.000Z",
  "Vendredi Saint": "2018-03-29T22:00:00.000Z",
  "Saint Étienne": "2018-12-25T23:00:00.000Z"
}
```