Skip to main content

names

Nov 18, 2022AustinLeath
Loading...

More JSON Posts

Package.json Workspaces Config

Aug 16, 2023C S

0 likes • 3 views

{
"name": "test-project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"workspaces": ["packages/*"]
}

VSCode Project Settings

Mar 6, 2024C S

0 likes • 12 views

{
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "always",
"source.organizeImports": "always"
},
"javascript.preferences.importModuleSpecifier": "non-relative",
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.updateImportsOnFileMove.enabled": "always",
"search.exclude": {
"**/node_modules": true,
"**/package-lock.json": true,
"**/dist": true
}
}

jsonToCsv.jq

Oct 3, 2024LeifMessinger

0 likes • 6 views

# Needs array or use -s to slurp
# Just making sure it's an array, or object
. | iterables |
# This won't error (I want to use halt_error in the future, but idk how to convert this into an error.)
# So if your output is empty, that's why
[.[] | del(.[] | select(type == "array" or type == "object"))] |
([.[] | keys[]] | unique | map({(.): null}) | add) as $uniqueKeys |
($uniqueKeys | keys_unsorted | @csv),
($uniqueKeys + .[] | [.[]] | @csv)