# @wangkaixuan/intro-npm

> My first public npm package project. Simplest NPM package (no dependencies on third-party packages)

Latest version **1.4.0** (published 2020-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wangkaixuan/intro-npm
pnpm add @wangkaixuan/intro-npm
yarn add @wangkaixuan/intro-npm
bun add @wangkaixuan/intro-npm
```

## 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.4.0 |
| Published | 2020-12-07 |
| First published | 2020-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wangkaixuan |
| Maintainers | wangkaixuan |
| Keywords | wangkaixuan, iroan, intro, npm, node |

## Links

- npm: https://www.npmjs.com/package/@wangkaixuan/intro-npm
- Repository: https://github.com/iroan/intro-npm
- Homepage: https://github.com/iroan/intro-npm#readme
- Issues: https://github.com/iroan/intro-npm/issues
- npm.io page: https://npm.io/package/@wangkaixuan/intro-npm

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2020-12-07
- 1.3.0 — 2020-12-07
- 1.1.0 — 2020-12-07
- 1.0.0 — 2020-12-07

## README

My first public npm package project. Simplest NPM package (no dependencies on third-party packages.

# project structure:
```
➜  intro-npm git:(main) ✗ tree 
.
├── LICENSE
├── README.md
├── index.js // source code 
├── index.test.js // test file
└── package.json // used by npm or yarn

0 directories, 5 files
```
# dev 
1. local test: `npm install path(absolutly)`
1. publish: `npm publish --access public`

# usage
1. npm install @wangkaixuan/intro-npm
1. 
    ```js
    const myadd = require('@wangkaixuan/intro-npm');
    console.log('myadd:', myadd.add(1, 1));
    ```

1. simple usage
```js
➜  use-intro-npm1 npm init --yes
Wrote to /Users/wangkaixuan/playground/use-intro-npm1/package.json:

{
  "name": "use-intro-npm1",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}


➜  use-intro-npm1 npm install @wangkaixuan/intro-npm
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN use-intro-npm1@1.0.0 No description
npm WARN use-intro-npm1@1.0.0 No repository field.

+ @wangkaixuan/intro-npm@1.3.0
added 1 package from 1 contributor and audited 1 package in 2.471s
found 0 vulnerabilities

➜  use-intro-npm1 touch index.js
➜  use-intro-npm1 ls
index.js          node_modules      package-lock.json package.json
➜  use-intro-npm1 cat index.js  
const myadd = require('@wangkaixuan/intro-npm');
console.log('myadd:', myadd.add(1, 1));                                                                                                 
➜  use-intro-npm1 node index.js 
myadd: 2
```
# refer
1. [Creating and publishing scoped public packages](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages)

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