<commit_before># npm Cheat Sheet

See http://browsenpm.org/help for another npm cheat sheet.


## Initializing a Package

```sh
npm init
```

**Scoped**

```sh
npm init --scope=my-scope
```

```sh
npm init --scope=username
```


## Listing Installed Packages

**List All Global Packages**

```sh
npm ls --global
```

**List All Local Packages**

```sh
cd project
npm ls
```


## package.json

### Dependencies

See https://docs.npmjs.com/files/package.json#dependencies for details.
<commit_msg>Start a Version Controlled Package Initialization Examples Sub-Section<commit_after># npm Cheat Sheet

See http://browsenpm.org/help for another npm cheat sheet.


## Initializing a Package

```sh
npm init
```

**Scoped**

```sh
npm init --scope=my-scope
```

```sh
npm init --scope=username
```

### Version Controlled Package Initialization Examples


## Listing Installed Packages

**List All Global Packages**

```sh
npm ls --global
```

**List All Local Packages**

```sh
cd project
npm ls
```


## package.json

### Dependencies

See https://docs.npmjs.com/files/package.json#dependencies for details.

{'fraction_non_alphanumeric': 0.15049864007252947, 'fraction_numerical': 0.0, 'mean_word_length': 4.158878504672897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2321728', 'n_tokens_mistral': 408, 'n_tokens_neox': 351, 'n_words': 116}