# npm-publish-training-app

> ``` npm init -y git init ```

Latest version **1.0.0** (published 2022-01-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install npm-publish-training-app
pnpm add npm-publish-training-app
yarn add npm-publish-training-app
bun add npm-publish-training-app
```

Provides the command `npm-publish-training-app`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-01-15 |
| First published | 2022-01-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mikeborowy |

## Links

- npm: https://www.npmjs.com/package/npm-publish-training-app
- npm.io page: https://npm.io/package/npm-publish-training-app

## Dependencies (1)

- [express](https://npm.io/package/express.md) ^4.17.2

## Recent versions

- 1.0.0 (latest) — 2022-01-15

## README

## Init NPM

```
npm init -y
git init
```

## Further setup

```
npm i typescript express @types/express eslint
```

## Init TS

```
npx tsc --init
```

## Configure project

> tsconfig.ts

```
{ declaration: true, outDir: './dist' }
```

> package.json

Make sure name is not available at https://www.npmjs.com/

```
{
  "name": "npm-publish-training-app",
  "publishConfig": {
    "access": "public"
  },
  "files": [
    "./dist"
  ],
  "bin": "./dist/index.js",
  "scripts": {
    "build": "tsc",
    "prepublishOnly": "npm run build"
  },
}
```

`#!/user/bin/env node` - added to `index.ts` allows to execute directly instead of `project/dist/node index.js`

Split `dependencies` and `devDependencies`

## Publish to NPM

```
  npm login
  npm publish
```

---
_Source: https://npm.io/package/npm-publish-training-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
