@pnpm/modules-yaml
TypeScript icon, indicating that this package has built-in type declarations

1000.3.1 • Public • Published

@pnpm/modules-yaml

Reads/writes `node_modules/.modules.yaml`

npm version

Installation

pnpm add @pnpm/modules-yaml

Usage

import {write, read} from '@pnpm/modules-yaml'

await write('node_modules', {
  hoistedAliases: {},
  layoutVersion: 1,
  packageManager: 'pnpm@1.0.0',
  pendingBuilds: [],
  shamefullyFlatten: false,
  skipped: [],
  storeDir: '/home/user/.pnpm-store',
})

const modulesYaml = await read(`node_modules`)

API

read(pathToDir): Promise<ModulesObject>

Reads .modules.yaml from the specified directory.

write(pathToDir, ModulesObject): Promise<void>

Writes a .modules.yaml file to the specified directory.

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.0-10next
1000.3.1450latest
9.1.219latest-6
8.0.22pnpm-temp

Version History

VersionDownloads (Last 7 Days)Published
1000.3.1450
1000.3.0121
1000.2.010,361
1000.1.497
1000.1.3157
1000.1.21,987
1000.1.13
1000.1.02
1000.0.04
900.0.0470
13.1.74,039
13.1.66
13.1.52
13.1.41
13.1.337
13.1.21
13.1.121
13.1.028
13.0.017
12.1.71,457
12.1.697
12.1.51
12.1.412,773
12.1.311
12.1.213
12.1.129
12.1.01
12.0.071
11.1.0121
11.0.214
11.0.1155
11.0.01
10.0.81,108
10.0.716
10.0.6481
9.1.219
10.0.53
10.0.41
10.0.30
10.0.20
10.0.11
10.0.00
9.1.11
9.1.01
9.0.111
9.0.101
9.0.90
9.0.81
9.0.70
9.0.65
9.0.56
9.0.45
9.0.31
9.0.21
9.0.12
9.0.01
8.0.62
8.0.52
8.0.40
8.0.31
8.0.22
8.0.11
8.0.00
7.0.03
7.0.0-alpha.02
6.0.21
6.0.10
6.0.01
5.0.11
5.0.02
4.0.00
4.0.0-10
4.0.0-00
3.0.31
3.0.21
3.0.10
3.0.02
2.0.12
2.0.01
2.0.0-00
1.0.01

Package Sidebar

Install

npm i @pnpm/modules-yaml

Weekly Downloads

34,229

Version

1000.3.1

License

MIT

Unpacked Size

12.3 kB

Total Files

6

Last publish

Collaborators

  • pnpmuser
  • zkochan