Skip to content

Instantly share code, notes, and snippets.

@DaneTheory
Last active June 24, 2021 17:17
Show Gist options
  • Select an option

  • Save DaneTheory/e6b1aa992fd8a312dc6cd4d01bcf6240 to your computer and use it in GitHub Desktop.

Select an option

Save DaneTheory/e6b1aa992fd8a312dc6cd4d01bcf6240 to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: OS
[{
"npm:current": {
"ref": "",
"source": [
]
},
"npm:legacy": {
"ref": "",
"source": [
]
},
"yarn:current": {
"ref": "null",
"source": "null"
},
"yarn:legacy": {
"ref": "https://classic.yarnpkg.com/en/docs/package-json/#toc-os",
"source": [
"This specifies operating system compatibility for your package. It checks against 'process.platform'.",
"_example_:{ \n \"os\": [ \n \"darwin\", \n \"linux\" \n ], \n \"os\": [ \n \"!win32\" \n ] \n }:_example_"
]
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment