open-index/open-npm huggingface dataset:
npm package: @socialgouv/codes-naf
Description: [![npm (scoped)](https://img.shields.io/npm/v/@socialgouv/codes-naf)](https://www.npmjs.com/package/@socialgouv/codes-naf)
Latest version: 1.1.1

# @socialgouv/codes-naf

[![npm (scoped)](https://img.shields.io/npm/v/@socialgouv/codes-naf)](https://www.npmjs.com/package/@socialgouv/codes-naf)

Liste des [codes NAF](https://fr.wikipedia.org/wiki/Nomenclature_d%27activit%C3%A9s_fran%C3%A7aise) issue de [l'INSEE](https://www.insee.fr/fr/information/2120875)

## Usage

```ts
type CodeNaf = {
  id: string;
  label: string;
};
```

Le JSON brut de **tous** les codes est accessible avec :

```js
// CodeNaf[]
const codesNaf = require("@socialgouv/codes-naf/index.json");
````

Pour récupérer un code en particulier :

```js
const codesNaf = require("@socialgouv/codes-naf");

const naf = codesNaf.find(code => code.id === "10.51");

console.log(naf.label);

// Exploitation de laiteries et fabrication de fromage

```
npm package: @socialgouv/contributions-data
Description: Data package for CDTN contributions data
Latest version: 3.89.0

# contributions-data

Data package for CDTN contributions data

## Install

```sh
yarn add @socialgouv/contributions-data
# or if you only need the Typescript types
yarn add -D @socialgouv/contributions-data-types
```

## Related

- [Code du travail numérique](https://github.com/SocialGouv/code-du-travail-numerique)
- [dila-api-client : Client JavaScript pour l'API DILA AIFE](https://github.com/SocialGouv/dila-api-client)
- [kali-data : base conventions collectives KALI](https://github.com/SocialGouv/kali-data)
- [fiches-vdd : Fiches vos droits et démarches](https://github.com/SocialGouv/fiches-vdd)
npm package: @socialgouv/contributions-data-types
Description: Data package for CDTN contributions data
Latest version: 3.89.0

# contributions-data

Data package for CDTN contributions data

## Install

```sh
yarn add @socialgouv/contributions-data
# or if you only need the Typescript types
yarn add -D @socialgouv/contributions-data-types
```

## Related

- [Code du travail numérique](https://github.com/SocialGouv/code-du-travail-numerique)
- [dila-api-client : Client JavaScript pour l'API DILA AIFE](https://github.com/SocialGouv/dila-api-client)
- [kali-data : base conventions collectives KALI](https://github.com/SocialGouv/kali-data)
- [fiches-vdd : Fiches vos droits et démarches](https://github.com/SocialGouv/fiches-vdd)
npm package: @socialgouv/covid19-tests-schemas
Description: Schéma au format [OpenAPI 3.0](http://spec.openapis.org/oas/v3.0.3)
Latest version: 3.0.2

# schéma de données des tests COVID-19 [![](https://img.shields.io/npm/v/@socialgouv/covid19-tests-schemas)](https://www.npmjs.com/package/@socialgouv/covid19-tests-schemas)

Schéma au format [OpenAPI 3.0](http://spec.openapis.org/oas/v3.0.3)

Lisible sur : https://socialgouv.github.io/covid19-tests-schemas

Pour proposer une modification, [éditer le fichier openapi3.yaml](https://github.com/SocialGouv/covid19-tests-schemas/edit/master/openapi3.yaml) et envoyer une pull request.

Une release est automatiquement publiée avec [semantic-release](https://github.com/semantic-release/semantic-release) si des [commits conventionnels](https://www.conventionalcommits.org/en/v1.0.0/) sont présents.


## Usage

```js
import spec from "@socialgouv/covid19-tests-schemas";

console.log(spec);
```
npm package: @socialgouv/csv-anonymify
Description: Anonymise un CSV
Latest version: 1.1.18

# @socialgouv/csv-anonymify

Anonymise un CSV

Les types de données sont détectés avec [@socialgouv/match-entities](https://github.com/SocialGouv/anonymify/tree/main/packages/match-entities).

## Usage

### NodeJs

```js
import fs from "fs";
import { anonymify } from "@socialgouv/csv-anonymify";

const input = fs.createReadStream("./sample.csv");

const anonymiser = anonymify(input, {
  onProgress: console.log,
  fields: [{ name: "civilite", type: "sex" }],
});

anonymiser.pipe(fs.createWriteStream("./sample-anonymised.csv"));
```

### Browser :

See demo application in `/apps/csv` using `FileReader` streaming APIs
npm package: @socialgouv/csv-sample
Description: Renvoie le type de données pour chaque colonne d'un CSV.
Latest version: 1.1.18

# @socialgouv/csv-sample

Renvoie le type de données pour chaque colonne d'un CSV.

Les types de données sont détectés avec [@socialgouv/match-french-entities](https://github.com/socialgouv/match-french-entities).

## Usage

```js
import fs from "fs";
import { sample } from "@socialgouv/csv-sample";

const input = fs.createReadStream("./sample.csv");

const samples = await sample(input, { onProgress: console.log });

console.log(samples);
```
npm package: @socialgouv/datafiller-data
Description: ![Node.js CI](https://github.com/SocialGouv/datafiller-data/workflows/Node.js%20CI/badge.svg) [![codecov](https://codecov.io/gh/SocialGouv/datafiller-data/branch/master/graph/badge.svg)](https://codecov.io/gh/SocialGouv/datafiller-data)
Latest version: 2.20.0

# @socialgouv/datafiller-data

![Node.js CI](https://github.com/SocialGouv/datafiller-data/workflows/Node.js%20CI/badge.svg)
[![codecov](https://codecov.io/gh/SocialGouv/datafiller-data/branch/master/graph/badge.svg)](https://codecov.io/gh/SocialGouv/datafiller-data)

## Usage

```js
const glossary = require("@socialgouv/datafiller-data/data/glossary.json");
const agreements = require("@socialgouv/datafiller-data/data/agreements.json");
const highlights = require("@socialgouv/datafiller-data/data/highlights.json");
const requests = require("@socialgouv/datafiller-data/data/requests.json");
const themes = require("@socialgouv/datafiller-data/data/themes.json");
```

## Dev

Pour mettre à jour les fiches :

```sh
yarn start
```

## Release policy

The release job is schedule every day at 23.00PM ans also trigger after each commit in the master branch.
If data had changed, a new release will be made.

### Manual release

If you need to trigger the release job manually, you can do it using curl
You will need to provide a valid token.

```sh
curl -H "Accept: application/vnd.github.everest-preview+json" \
    -H "Authorization: token <your-token-here>" \
    --request POST \
    --data '{"event_type": "manual_release"}' \
    https://api.github.com/repos/SocialGouv/datafiller-data/dispatches
```
npm package: @socialgouv/datafiller-data-types
Description: ![Node.js CI](https://github.com/SocialGouv/datafiller-data/workflows/Node.js%20CI/badge.svg) [![codecov](https://codecov.io/gh/SocialGouv/datafiller-data/branch/master/graph/badge.svg)](https://codecov.io/gh/SocialGouv/datafiller-data)
Latest version: 2.20.0

# @socialgouv/datafiller-data

![Node.js CI](https://github.com/SocialGouv/datafiller-data/workflows/Node.js%20CI/badge.svg)
[![codecov](https://codecov.io/gh/SocialGouv/datafiller-data/branch/master/graph/badge.svg)](https://codecov.io/gh/SocialGouv/datafiller-data)

## Usage

```js
const glossary = require("@socialgouv/datafiller-data/data/glossary.json");
const agreements = require("@socialgouv/datafiller-data/data/agreements.json");
const highlights = require("@socialgouv/datafiller-data/data/highlights.json");
const requests = require("@socialgouv/datafiller-data/data/requests.json");
const themes = require("@socialgouv/datafiller-data/data/themes.json");
```

## Dev

Pour mettre à jour les fiches :

```sh
yarn start
```

## Release policy

The release job is schedule every day at 23.00PM ans also trigger after each commit in the master branch.
If data had changed, a new release will be made.

### Manual release

If you need to trigger the release job manually, you can do it using curl
You will need to provide a valid token.

```sh
curl -H "Accept: application/vnd.github.everest-preview+json" \
    -H "Authorization: token <your-token-here>" \
    --request POST \
    --data '{"event_type": "manual_release"}' \
    https://api.github.com/repos/SocialGouv/datafiller-data/dispatches
```
npm package: @socialgouv/emjpm-ui-components
Description: ui library for emjpm
Author: Incubateur des Ministères Sociaux
Latest version: 0.55.0

# emjpm-ui
ui library for emjpm

Storybook with auto docs can be found here https://emjpm-design-system.netlify.com

## Components package

you can find the components in that package.

exemple usage : 

```javascript
import {Button} from "@socialgouv/emjpm-ui-components"

const App =() => (
  <div>
    <Button>Content<Button/>
  </div>
)
```
npm package: @socialgouv/emjpm-ui-core
Description: ui library for emjpm
Author: Incubateur des Ministères Sociaux
Latest version: 1.20.2

# emjpm-ui
ui library for emjpm

Storybook with auto docs can be found here https://emjpm-design-system.netlify.com

## Core package

you can find the core component in that package.

you need to provide a theme with theme-ui with theme from the package https://github.com/SocialGouv/emjpm-design-system/tree/master/packages/theme

exemple usage : 

```javascript
import {Button} from "@socialgouv/emjpm-ui-core"

const App =() => (
  <div>
    <Button>Content<Button/>
  </div>
)
```
npm package: @socialgouv/emjpm-ui-global-style
Description: ui library for emjpm
Author: Incubateur des Ministères Sociaux
Latest version: 1.3.4

# emjpm-ui
ui library for emjpm

Storybook with auto docs can be found here https://emjpm-design-system.netlify.com

# Installation and Usage

## Global Style (reset/normalise.css)

you can use the package @socialgouv/emjpm-ui-global-style and insert it in your head on anywhere you need

in exemple 

```javascript
import { GlobalStyle } from '@socialgouv/emjpm-ui-global-style'

const App =() => (
  <div>
    <GlobalStyle/>
  </div>
)
```
npm package: @socialgouv/emjpm-ui-theme
Description: ui library for emjpm
Author: Incubateur des Ministères Sociaux
Latest version: 1.9.4

# emjpm-ui
ui library for emjpm

Storybook with auto docs can be found here https://emjpm-design-system.netlify.com

# Installation and Usage

## theming

You can use @socialgouv/emjpm-ui-theme or create your own based on that one, it should respect colors and variant 

To provide a theme to the app you should use https://theme-ui.com/getting-started/

### install dependencies
```zsh
yarn add theme-ui @emotion/core @mdx-js/react
```

### adding theme to the app
```javascript
// basic usage
import React from 'react'
import { ThemeProvider } from 'theme-ui'
import theme from '@socialgouv/emjpm-ui-theme'

const App = () => (
  <ThemeProvider theme={theme}>
    <Content/>
  </ThemeProvider>
)
```
npm package: @socialgouv/env-slug
Description: Generate slug for K8S namespace or DB name from git branch
Author: Fabrique numérique des Ministères Sociaux
Latest version: 1.2.3

@socialgouv/env-slug
====================

Generate slug for K8S namespace or DB name from git branch

# Usage
```sh
ENV_SLUG=$(npx @socialgouv/env-slug my-project-my-awesomebranch-name)
```
npm package: @socialgouv/eslint-config-react
Description: SocialGouv recommended eslint React config
Author: Incubateur des Ministères Sociaux
Latest version: 1.131.0

# @socialgouv/eslint-config-react

> Our React eslint config

## Install

```sh
$ npm install -D @socialgouv/eslint-config-react eslint prettier
# or
$ yarn add -D @socialgouv/eslint-config-react eslint prettier
```

## Usage

Add this to your `.eslintrc.yml` file:

```yaml
extends:
  - "@socialgouv/eslint-config-react"
```

or add this to your `.eslintrc.json` file:

```json
{
  "extends": ["@socialgouv/eslint-config-react"]
}
```
npm package: @socialgouv/eslint-config-react-strict
Description: SocialGouv recommended eslint React config
Author: Incubateur des Ministères Sociaux
Latest version: 1.0.0-beta.5

# @socialgouv/eslint-config-react-strict

> Our strict React eslint config.

## Install

```sh
$ npm install -D @socialgouv/eslint-config-react-strict eslint prettier
# or
$ yarn add -D @socialgouv/eslint-config-react-strict eslint prettier
```

## Usage

You can either:

- add this to your `.eslintrc.yml` file:

  ```yaml
  extends:
    - "@socialgouv/eslint-config-react-strict"
  ```

- or add this to your `.eslintrc.json` file:

  ```json
  {
    "extends": ["@socialgouv/eslint-config-react-strict"]
  }
  ```

- or add this to your `package.json` file:

  ```json
  {
    "eslintConfig": {
      "extends": ["@socialgouv/eslint-config-react-strict"]
    }
  }
  ```
npm package: @socialgouv/eslint-config-recommended
Description: Social Gouv default recommended eslint config
Author: Incubateur des Ministères Sociaux
Latest version: 1.131.0

# @socialgouv/eslint-config-recommended

> Our default recommended eslint config

## Install

```sh
$ npm install -D @socialgouv/eslint-config-recommended eslint prettier
# or
$ yarn add -D @socialgouv/eslint-config-recommended eslint prettier
```

## Usage

Add this to your `.eslintrc.yml` file:

```yaml
extends:
  - "@socialgouv/eslint-config-recommended"
```

or add this to your `.eslintrc.json` file:

```json
{
  "extends": ["@socialgouv/eslint-config-recommended"]
}
```
npm package: @socialgouv/eslint-config-strict
Description: SocialGouv strict ESLint config.
Author: Fabrique numérique des Ministères Sociaux
Latest version: 1.0.0-beta.5

# @socialgouv/eslint-config-strict

> Our strict eslint config.

## Install

```sh
$ npm install -D @socialgouv/eslint-config-strict eslint prettier
# or
$ yarn add -D @socialgouv/eslint-config-strict eslint prettier
```

## Usage

Add this to your `.eslintrc.yml` file:

```yaml
extends:
  - "@socialgouv/eslint-config-strict"
```

or add this to your `.eslintrc.json` file:

```json
{
  "extends": ["@socialgouv/eslint-config-strict"]
}
```

## Suggestions

In some cases, sorting objects keys doesn't make sense. You can disable this rule for some files and directories:

```yaml
overrides:
  - files:
    - src/elements/**/*.js
    rules:
      sort-keys-fix/sort-keys-fix: off
```

```json
{
  "overrides": [
    {
      files: ["src/elements/**/*.js"],
      rules: {
        "sort-keys-fix/sort-keys-fix": "off"
      }
    }
  ]
}
```
npm package: @socialgouv/eslint-config-typescript
Description: Social Gouv typescript eslint config
Author: Incubateur des Ministères Sociaux
Latest version: 1.131.0

# @socialgouv/eslint-config-typescript

> Our default typescript eslint config

## Install

```sh
$ npm install -D @socialgouv/eslint-config-typescript eslint prettier typescript
# or
$ yarn add -D @socialgouv/eslint-config-typescript eslint prettier typescript
```

## Usage

Add this to your `.eslintrc.yml` file:

```yaml
extends:
  - "@socialgouv/eslint-config-typescript"
```

or add this to your `.eslintrc.json` file:

```json
{
  "extends": ["@socialgouv/eslint-config-typescript"]
}
```
npm package: @socialgouv/fiches-travail-data
Description: > Json formated data from from set of page of travail-emploi website > You can include json data
Author: LionelB
Latest version: 4.1187.0

# fiches-travail-data

> Json formated data from from set of page of travail-emploi website
> You can include json data

[![Node.js CI](https://github.com/SocialGouv/fiches-travail-data/workflows/Node.js%20CI/badge.svg)](https://github.com/SocialGouv/fiches-travail-data/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster)
[![Release](https://github.com/SocialGouv/fiches-travail-data/workflows/Release/badge.svg)](https://github.com/SocialGouv/fiches-travail-data/actions?query=workflow%3ARelease+branch%3Amaster)
[![codecov](https://codecov.io/gh/SocialGouv/fiches-travail-data/branch/master/graph/badge.svg)](https://codecov.io/gh/SocialGouv/fiches-travail-data)

<br>
<br>

## Usage

```js
const { decodeEmail } = require("@socialgouv/fiches-travail-data");
const fichesMT = require("@socialgouv/fiches-travail-data/data/fiches-travail.json");
```

## Development

Build dist folder once

```sh
$ yarn build
```

Make sure references are good

```sh
$ yarn checkRefs
```

Fetch fiches from https://travail-emploi.gouv.fr

```sh
$ yarn start
```

## Tests

```sh
$ yarn test
```

## Notes

### email

There are some email adresses in the data. To prevent email sniffing
we transform the `@` into `_@`.

## Release policy

The release job is schedule every day at 23.00PM ans also trigger after each commit in the master branch.
If data had changed, a new release will be made.

Releases are automaticly made through our [GitHub Actions](https://github.com/SocialGouv/fiches-travail-data/actions) strictly following the [Semantic Versioning](http://semver.org/) specification thanks to [semantic-release](https://github.com/semantic-release/semantic-release).

We release an additional `@socialgouv/fiches-travail-data-types` package by sed-ing the package.json (see [`.releaserc.yml`](./.releaserc.yml))

### Manual release

If you need to trigger the release job manually, you can do it using the [GitHub UI](https://github.com/SocialGouv/fiches-travail-data/actions/workflows/release.yml) or curl. You will need to provide a valid token.

``` 
curl -H "Accept: application/vnd.github.everest-preview+json" \
 -H "Authorization: token <your-token-here>" \
 --request POST \
 --data '{"event_type": "manual_release"}' \
 https://api.github.com/repos/SocialGouv/fiches-travail-data/dispatches
```
npm package: @socialgouv/fiches-travail-data-types
Description: > Json formated data from from set of page of travail-emploi website > You can include json data
Author: LionelB
Latest version: 4.1187.0

# fiches-travail-data

> Json formated data from from set of page of travail-emploi website
> You can include json data

[![Node.js CI](https://github.com/SocialGouv/fiches-travail-data/workflows/Node.js%20CI/badge.svg)](https://github.com/SocialGouv/fiches-travail-data/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster)
[![Release](https://github.com/SocialGouv/fiches-travail-data/workflows/Release/badge.svg)](https://github.com/SocialGouv/fiches-travail-data/actions?query=workflow%3ARelease+branch%3Amaster)
[![codecov](https://codecov.io/gh/SocialGouv/fiches-travail-data/branch/master/graph/badge.svg)](https://codecov.io/gh/SocialGouv/fiches-travail-data)

<br>
<br>

## Usage

```js
const { decodeEmail } = require("@socialgouv/fiches-travail-data");
const fichesMT = require("@socialgouv/fiches-travail-data/data/fiches-travail.json");
```

## Development

Build dist folder once

```sh
$ yarn build
```

Make sure references are good

```sh
$ yarn checkRefs
```

Fetch fiches from https://travail-emploi.gouv.fr

```sh
$ yarn start
```

## Tests

```sh
$ yarn test
```

## Notes

### email

There are some email adresses in the data. To prevent email sniffing
we transform the `@` into `_@`.

## Release policy

The release job is schedule every day at 23.00PM ans also trigger after each commit in the master branch.
If data had changed, a new release will be made.

Releases are automaticly made through our [GitHub Actions](https://github.com/SocialGouv/fiches-travail-data/actions) strictly following the [Semantic Versioning](http://semver.org/) specification thanks to [semantic-release](https://github.com/semantic-release/semantic-release).

We release an additional `@socialgouv/fiches-travail-data-types` package by sed-ing the package.json (see [`.releaserc.yml`](./.releaserc.yml))

### Manual release

If you need to trigger the release job manually, you can do it using the [GitHub UI](https://github.com/SocialGouv/fiches-travail-data/actions/workflows/release.yml) or curl. You will need to provide a valid token.

``` 
curl -H "Accept: application/vnd.github.everest-preview+json" \
 -H "Authorization: token <your-token-here>" \
 --request POST \
 --data '{"event_type": "manual_release"}' \
 https://api.github.com/repos/SocialGouv/fiches-travail-data/dispatches
```