6.0.2 • Published 5 months ago
read-pubspec v6.0.2
read-pubspec
Read a pubspec.yaml file
Install
$ npm install read-pubspec
Usage
import path from 'node:path';
import { readPubspec } from 'read-pubspec';
process.chdir(path.join(__dirname, '/test'));
console.log(await readPubspec());
//=> { name: 'root', … }
console.log(await readPubspec({ cwd: path.join(process.cwd(), '/sub') }));
//=> { name: 'sub', … }
API
readPubspec(options?)
Returns a Promise<Pubspec>
with the parsed YAML.
options
Type: ReadPubspecOptions
options.cwd
Type: string
Default: process.cwd()
Current working directory
5.1.4
7 months ago
6.0.1
6 months ago
6.0.0
6 months ago
6.0.2
5 months ago
5.1.3
9 months ago
5.1.2
10 months ago
5.1.1
1 year ago
5.1.0
1 year ago
5.0.1
1 year ago
5.0.0
2 years ago
4.1.1
2 years ago
4.1.0
2 years ago
4.0.1
2 years ago
3.1.1
2 years ago
3.1.0
2 years ago
4.0.0
2 years ago
3.0.4
3 years ago
3.0.3
3 years ago
3.0.2
3 years ago
2.2.0
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.1.0
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.1
5 years ago
1.0.0
5 years ago