@pnpm/modules-yaml v13.1.7
@pnpm/modules-yaml
Reads/writes `node_modules/.modules.yaml`
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
2 months ago
3 months ago
3 months ago
5 months ago
4 months ago
5 months ago
6 months ago
7 months ago
7 months ago
10 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago