open-index/open-npm huggingface dataset:
npm package: @simplo__/npm-package
Description: An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.
Author: Hans Maast
Latest version: 1.0.1

# modern-npm-package

An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format (CJS). It can be used in Node.js and browser applications.

## Get Started

1. Run `npm install` in your terminal
1. Then run `npm run build`
1. Update the `package.json` file "name" field with your own package name. Example `@username/package-name`
1. Create an account with [npm](https://www.npmjs.com/signup) if you don't have one already. Also be sure to enable [two-factor authentication](https://docs.npmjs.com/configuring-two-factor-authentication)
1. Sign in to your npm account in your terminal with `npm login`
1. Run `npm publish --access=public` to publish your package

### Testing

1. Install developer dependencies using the following command in your terminal `npm i -D mocha @type/mocha chai @types/chai ts-node`
1. Create a new file `.mocharc.json` in the root directory with the following contents:
   ```json
   {
     "extension": ["ts"],
     "spec": "./**/*.spec.ts",
     "require": "ts-node/register"
   }
   ```
1. Create a `tests` folder
1. Create an `index.spec.ts` file in the `tests` folder
1. Write unit tests in the `index.spec.ts` file to test the code in `index.ts`
1. Add a `"test"` property in the `package.json` file and give it a value of `"mocha"`
1. Run `npm test` in your terminal from the root folder of the project
npm package: @simplr-wc/eslint-config
Description: ```bash npm install -D @simplr-wc/eslint-config ```
Author: Simplr
Latest version: 1.0.4

# ESLint config

```bash
npm install -D @simplr-wc/eslint-config
```

```json
// package.json
{
  "...": "...",
  "eslintConfig": {
    "extends": ["@simplr-wc/eslint-config"]
  }
}
```
npm package: @simplr-wc/prettier-config
Description: ```bash npm install -D @simplr-wc/prettier-config ```
Author: Simplr
Latest version: 1.0.3

# Prettier config

```bash
npm install -D @simplr-wc/prettier-config
```

```json
// package.json
{
    "...": "...",
    "prettier": "@simplr-wc/prettier-config"
}
```