13.1.7 • Published 3 months ago

@pnpm/modules-yaml v13.1.7

Weekly downloads
688
License
MIT
Repository
github
Last release
3 months ago

@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

13.1.7

3 months ago

13.1.5

5 months ago

13.1.6

4 months ago

13.1.3

6 months ago

13.1.4

5 months ago

13.1.2

6 months ago

13.1.1

7 months ago

13.1.0

8 months ago

13.0.0

9 months ago

12.1.7

12 months ago

12.1.6

12 months ago

12.1.5

1 year ago

12.1.2

1 year ago

12.1.3

1 year ago

12.1.4

1 year ago

12.1.0

2 years ago

12.1.1

2 years ago

12.0.0

2 years ago

11.1.0

2 years ago

11.0.2

2 years ago

10.0.8

2 years ago

11.0.0

2 years ago

11.0.1

2 years ago

10.0.7

2 years ago

10.0.5

3 years ago

10.0.6

2 years ago

10.0.3

3 years ago

10.0.4

3 years ago

9.1.2

2 years ago

10.0.2

3 years ago

10.0.1

3 years ago

10.0.0

3 years ago

9.0.9

3 years ago

9.0.11

3 years ago

9.0.10

3 years ago

9.1.1

3 years ago

9.1.0

3 years ago

9.0.8

3 years ago

9.0.7

3 years ago

9.0.6

3 years ago

9.0.5

3 years ago

9.0.4

3 years ago

9.0.3

4 years ago

9.0.2

4 years ago

9.0.1

4 years ago

9.0.0

4 years ago

8.0.6

4 years ago

8.0.5

4 years ago

8.0.4

4 years ago

8.0.3

4 years ago

8.0.2

4 years ago

8.0.1

5 years ago

8.0.0

5 years ago

7.0.0

5 years ago

7.0.0-alpha.0

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.0.0

5 years ago

4.0.0-1

5 years ago

4.0.0-0

5 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

2.0.0-0

6 years ago

1.0.0

7 years ago