better-ajv-errors icon indicating copy to clipboard operation
better-ajv-errors copied to clipboard

Readme security improvement: Split up `npm` and `yarn` code blocks

Open plocket opened this issue 1 year ago • 1 comments

Currently, the README has

$ npm i better-ajv-errors
$ # Or
$ yarn add better-ajv-errors

One problem with this is that it doesn't allow the developer to just hit 'copy' and paste it into their terminal. npm has problems with people "typo squatting", so copy/pasting is a safer and more secure option than re-typing by hand. Separate code blocks for each command would let a developer stay safer.

plocket avatar Nov 26 '23 21:11 plocket