{"_id":"@ayogohealth/get_copy","_rev":"1-5e3748c288e335994adb8a4cbbc88918","name":"@ayogohealth/get_copy","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ayogohealth/get_copy","version":"1.0.0","description":"Turn a Google spreadsheet of translation strings into a JSON file","main":"index.js","exports":"index.js","bin":{"get_copy":"get_copy_cli.js"},"type":"module","scripts":{"build":"tsc","test":"npm run build && node --no-warnings --loader=esmock --test test/*.js"},"author":{"name":"Ayogo Health Inc.","email":"opensource@ayogo.com"},"contributors":[{"name":"Adam Vernon","email":"adam@akineticblog.com"},{"name":"Darryl Pogue","email":"darryl@dpogue.ca"},{"name":"Euan Forrester"},{"name":"Ian Suda","email":"iansuda@gmail.com"},{"name":"Jailson Brito"},{"name":"Sara Tan"}],"license":"MIT","engines":{"node":">= 16.17.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/AyogoHealth/get_copy.git"},"bugs":{"url":"https://github.com/AyogoHealth/get_copy/issues"},"dependencies":{"open":"^9.1.0"},"devDependencies":{"@types/node":"^20.0.0","esmock":"^2.0.4","typescript":"^5.0.0"},"_id":"@ayogohealth/get_copy@1.0.0","gitHead":"05aec1d40e143b28f790a42c352a01b6243d4d48","homepage":"https://github.com/AyogoHealth/get_copy#readme","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-9TXicfYnFP35oO1k0Y13GDW1tNPL+CsZepPtPTbrncyIBaH3OFm/m7AtIKcismq1cRRC0X6mSWsn7TtuVhAcag==","shasum":"2fb81c63a958e80597234c24901e81b65f0477bb","tarball":"https://registry.npmjs.org/@ayogohealth/get_copy/-/get_copy-1.0.0.tgz","fileCount":8,"unpackedSize":15992,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsmtUuaMqrr30mJXAazeZdj6X2MA0+pugaj2kD5+aQCAiEA2Gn9g+zPYXdkpJDAkyOW0AWWVblXY4NTd4bEyLYsa6E="}]},"_npmUser":{"name":"ayogohealth","email":"accounts@ayogo.com"},"directories":{},"maintainers":[{"name":"ayogohealth","email":"accounts@ayogo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get_copy_1.0.0_1702431368544_0.7288892864709309"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-13T01:36:08.456Z","1.0.0":"2023-12-13T01:36:08.710Z","modified":"2023-12-13T01:38:27.528Z"},"maintainers":[{"email":"darryl@dpogue.ca","name":"dpogue"},{"email":"accounts@ayogo.com","name":"ayogohealth"}],"description":"Turn a Google spreadsheet of translation strings into a JSON file","homepage":"https://github.com/AyogoHealth/get_copy#readme","repository":{"type":"git","url":"git+https://github.com/AyogoHealth/get_copy.git"},"contributors":[{"name":"Adam Vernon","email":"adam@akineticblog.com"},{"name":"Darryl Pogue","email":"darryl@dpogue.ca"},{"name":"Euan Forrester"},{"name":"Ian Suda","email":"iansuda@gmail.com"},{"name":"Jailson Brito"},{"name":"Sara Tan"}],"author":{"name":"Ayogo Health Inc.","email":"opensource@ayogo.com"},"bugs":{"url":"https://github.com/AyogoHealth/get_copy/issues"},"license":"MIT","readme":"get_copy script\n===============\n\nTurns a Google spreadsheet of translation keys and string values into a JSON file, which can be used with tools like [ngx-translate](http://www.ngx-translate.com/), [react-i18next](https://react.i18next.com/), or [vue-i18n](https://vue-i18n.intlify.dev/).\n\nInstallation\n------------\n\n```\nnpm install --dev @ayogohealth/get_copy\n```\n\nUsage\n-----\n\n```\nUsage: get_copy [OPTIONS] [SPREADSHEET_ID]\n\nOptions:\n  -h, --help                  Print this help message and exit\n\n  -v, --verbose               Print warnings to the console for debugging\n\n  -o, --output=FILE           Destination file path (default: stdout)\n\n  -c, --value-column=COL      Title of spreadsheet column to use for the\n                              translation values (default: \"value\")\n\n  -k, --key-column=COL        Title of spreadsheet column to use for the\n                              translation key name (default: \"key\")\n\n      --no-auth-cache         Disables caching of authentication tokens to file\n\n      --header                Header to include at the top of the output file\n```\n\nExamples\n--------\n\nUsing [this example spreadsheet](https://docs.google.com/spreadsheets/d/1L9x1ocxy6VwNEPsrWiTri4wGYN9FQUymRg1p267r9R4/):\n\n```\nnpx get_copy -o src/locales/en.json 1L9x1ocxy6VwNEPsrWiTri4wGYN9FQUymRg1p267r9R4\n\nnpx get_copy -o src/locales/fr.json -c \"Value-FR\" 1L9x1ocxy6VwNEPsrWiTri4wGYN9FQUymRg1p267r9R4\n```\n\nThe contents of `src/locales/en.json` would be:\n```json\n{\n  \"app_name\": \"Hello\",\n  \"main\": {\n    \"footer\": \"Goodbye\",\n    \"greeting\": \"Hello {name}!\"\n  }\n}\n```\n\nThe contents of `src/locales/fr.json` would be:\n```json\n{\n  \"app_name\": \"Bonjour\",\n  \"main\": {\n    \"footer\": \"Au revoir\",\n    \"greeting\": \"Bonjour {name}!\"\n  }\n}\n```\n\nContributing\n------------\n\nContributions of bug reports, feature requests, and pull requests are greatly\nappreciated!\n\nPlease note that this project is released with a [Contributor Code of\nConduct](CODE_OF_CONDUCT.md). By participating in this project you agree to\nabide by its terms.\n\n\nLicence\n-------\n\nReleased under the [MIT Licence](LICENCE).\n\nCopyright © 2022 – 2023 Ayogo Health Inc.\n","readmeFilename":"README.md"}