I have package.json which is below
{
  "name": "b",
  "version": "1.0.0",
  "description": "",
  "main": ".eslintrc.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}
Now, I want to update "name" from b to new-b. How can I do that programmatically?
I tried npm config set command, but it does not update package.json file
Please let me know Thank you
 
     
    