conf icon indicating copy to clipboard operation
conf copied to clipboard

Show example in readme of loading package.json when targeting Node.js 18

Open sindresorhus opened this issue 2 years ago • 0 comments

import Conf from 'conf';
import packageJson from './package.json' assert {type: 'json'};

const config = new Conf({projectName: packageJson.name});

sindresorhus avatar Jan 16 '23 03:01 sindresorhus