{"id":13834669,"url":"https://github.com/longlho/ts-transform-json","last_synced_at":"2025-04-23T17:10:48.500Z","repository":{"id":34130625,"uuid":"170011528","full_name":"longlho/ts-transform-json","owner":"longlho","description":"Inline specific values from a JSON file or the whole JSON blob","archived":false,"fork":false,"pushed_at":"2023-03-06T10:57:47.000Z","size":205,"stargazers_count":15,"open_issues_count":21,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-03T12:23:46.818Z","etag":null,"topics":["ast","compiler","json","transform","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/longlho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-02-10T18:31:37.000Z","updated_at":"2023-08-19T22:10:51.000Z","dependencies_parsed_at":"2024-01-15T18:47:15.271Z","dependency_job_id":"62b09bb5-efad-4555-9e54-622cd365a832","html_url":"https://github.com/longlho/ts-transform-json","commit_stats":{"total_commits":60,"total_committers":5,"mean_commits":12.0,"dds":0.5,"last_synced_commit":"341d652b8b9049e5db1036eb3b5b498561f19b2c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longlho%2Fts-transform-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longlho%2Fts-transform-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longlho%2Fts-transform-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longlho%2Fts-transform-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/longlho","download_url":"https://codeload.github.com/longlho/ts-transform-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250007170,"owners_count":21359743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","compiler","json","transform","typescript"],"created_at":"2024-08-04T14:00:50.674Z","updated_at":"2025-04-23T17:10:48.484Z","avatar_url":"https://github.com/longlho.png","language":"TypeScript","readme":"# ts-transform-json\n\n![build status](https://travis-ci.org/longlho/ts-transform-json.svg?branch=master)\n\nInline specific values from a JSON file or the whole JSON blob. For example:\n\n```typescript\nimport {version} from 'package.json'\n// becomes\nvar version = '1.0.5'\n\n// OR\nimport * as packageJson from 'package.json'\n// becomes\nvar packageJson = {\"version\": \"1.0.5\", dependencies: {}}\n```\n\n## Usage\n\nFirst of all, you need some level of familiarity with the [TypeScript Compiler API](https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API).\n\n`compile.ts` \u0026 tests should have examples of how this works. The available options are:\n\n### isDeclaration?: boolean\nWhether you're running this transformer in declaration files (typically specified in `afterDeclarations` instead of `after` in transformer list). This flag will inline types\ninstead of actual value.\n","funding_links":[],"categories":["Transformers"],"sub_categories":["General transformers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonglho%2Fts-transform-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flonglho%2Fts-transform-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonglho%2Fts-transform-json/lists"}