These should be snippets copied from a package.json, so you a user can easily paste them in. If you extract to your own npm package, you'd be able to just specify them as a dependency.