{"id":18696472,"url":"https://github.com/hermanya/value-to-type","last_synced_at":"2025-11-08T15:30:30.517Z","repository":{"id":57390530,"uuid":"140657019","full_name":"Hermanya/value-to-type","owner":"Hermanya","description":"Get schema from data; great for making quick assertions in integration tests","archived":false,"fork":false,"pushed_at":"2018-07-12T15:31:27.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T15:21:03.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npm.im/value-to-type","language":"JavaScript","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/Hermanya.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}},"created_at":"2018-07-12T03:37:36.000Z","updated_at":"2018-07-12T15:31:28.000Z","dependencies_parsed_at":"2022-09-15T21:23:14.127Z","dependency_job_id":null,"html_url":"https://github.com/Hermanya/value-to-type","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fvalue-to-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fvalue-to-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fvalue-to-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fvalue-to-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermanya","download_url":"https://codeload.github.com/Hermanya/value-to-type/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558930,"owners_count":19658929,"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":[],"created_at":"2024-11-07T11:19:10.765Z","updated_at":"2025-11-08T15:30:30.485Z","avatar_url":"https://github.com/Hermanya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Value to Type [![Build Status](https://travis-ci.org/hermanya/value-to-type.svg?branch=master)](https://travis-ci.org/hermanya/value-to-type)\n\n\u003e\n\n\n## Install\n\n```shell\nnpm install value-to-type\n```\n\n\n## Usage\n\n```js\nconst valueToType = require('value-to-type');\n\nvalueToType('unicorns');\n//=\u003e 'string'\n```\n\n\n## API\n\n### valueToType(value)\n\n#### input\n\nType: `any`\n\nFor example:\n\n```js\n[{rainbow: 'unicorns'}, {rainbow: 'cats'}]\n```\n\nOutput:\n\n```js\n[{rainbow: 'string'}]\n```\n\n## License\n\nMIT © [Herman](https://github.com/hermanya)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fvalue-to-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermanya%2Fvalue-to-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fvalue-to-type/lists"}