better-npm-audit icon indicating copy to clipboard operation
better-npm-audit copied to clipboard

Adding yaml support

Open PersonligaPersson opened this issue 3 years ago • 1 comments

I've added basic support for writing YAML in the nsprc configuration file. This was requested in issue #70.

The basic idea was to use the package yaml to parse the .nsprc file. I've ran this code with the the equivalent nsprc files 1070404: active: true notes: my note expiry: '2022-05-30'

and

{ "1070404": { "active": true, "notes": "These are my notes", "expiry": '2022-05-30' } }

on a project I'm working on which produced the same output.

Let me know if there are any changes needed for the PR to be accepted. Thanks!

PersonligaPersson avatar May 27 '22 23:05 PersonligaPersson

hey @PersonligaPersson sorry for the long due response. YAML support sounds amazing! Happy to merge this PR, would you be able to resolve the conflicts (I have just updated the repo after 2 years)? and I think it would be great to include a small test to try parsing a YAML file, so we can secure this feature and get it tested in the CI. Cheers!

jeemok avatar Aug 17 '24 05:08 jeemok