{"id":15965639,"url":"https://github.com/jamiemason/valueless","last_synced_at":"2026-05-28T02:30:15.082Z","repository":{"id":66237144,"uuid":"102040485","full_name":"JamieMason/valueless","owner":"JamieMason","description":"Replace values with paths, for use in test fixtures","archived":false,"fork":false,"pushed_at":"2017-09-04T11:23:33.000Z","size":60,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T19:33:53.555Z","etag":null,"topics":["fixtures","reselect","selectors","testing","transformation"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/valueless","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/JamieMason.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-31T20:07:18.000Z","updated_at":"2018-11-09T00:01:25.000Z","dependencies_parsed_at":"2023-02-20T16:46:00.385Z","dependency_job_id":null,"html_url":"https://github.com/JamieMason/valueless","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fvalueless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fvalueless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fvalueless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fvalueless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamieMason","download_url":"https://codeload.github.com/JamieMason/valueless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240155928,"owners_count":19756764,"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":["fixtures","reselect","selectors","testing","transformation"],"created_at":"2024-10-07T17:42:52.453Z","updated_at":"2026-05-28T02:30:14.999Z","avatar_url":"https://github.com/JamieMason.png","language":"JavaScript","funding_links":["https://www.paypal.me/foldleft"],"categories":[],"sub_categories":[],"readme":"# valueless\n\n\u003e Replace values with paths, for use in test fixtures\n\n[![NPM version](http://img.shields.io/npm/v/valueless.svg?style=flat-square)](https://www.npmjs.com/package/valueless)\n[![NPM downloads](http://img.shields.io/npm/dm/valueless.svg?style=flat-square)](https://www.npmjs.com/package/valueless)\n[![Dependency Status](http://img.shields.io/david/JamieMason/valueless.svg?style=flat-square)](https://david-dm.org/JamieMason/valueless)\n[![Gitter Chat for valueless](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/JamieMason/valueless)\n[![Donate via PayPal](https://img.shields.io/badge/donate-paypal-blue.svg)](https://www.paypal.me/foldleft)\n[![Donate via Gratipay](https://img.shields.io/gratipay/user/JamieMason.svg)](https://gratipay.com/~JamieMason/)\n[![Analytics](https://ga-beacon.appspot.com/UA-45466560-5/valueless?flat\u0026useReferer)](https://github.com/igrigorik/ga-beacon)\n[![Follow JamieMason on GitHub](https://img.shields.io/github/followers/JamieMason.svg?style=social\u0026label=Follow)](https://github.com/JamieMason)\n[![Follow fold_left on Twitter](https://img.shields.io/twitter/follow/fold_left.svg?style=social\u0026label=Follow)](https://twitter.com/fold_left)\n\n## Installation\n\n```\nnpm install --save-dev valueless\n```\n\n## Usage\n\n### Node.js\n\n```js\nimport valueless from 'valueless';\n\nconst data = [{\n  id: 1,\n  name: 'Marloes'\n}, {\n  id: 2,\n  name: 'Rutger'\n}];\n\nvalueless(data);\n// =\u003e [{ id: '0.id', name: '0.name' }, { id: '1.id', name: '1.name' }]\n\nvalueless(data, { excludes: ['id'] });\n// =\u003e [{ id: 1, name: '0.name' }, { id: 2, name: '1.name' }]\n\nvalueless(data, { prefix: 'API' });\n// =\u003e [{ id: 'API:0.id', name: 'API:0.name' }, { id: 'API:1.id', name: 'API:1.name' }]\n\nvalueless(data, { excludes: ['id'], prefix: 'API' });\n// =\u003e [{ id: 1, name: 'API:0.name' }, { id: 2, name: 'API:1.name' }]\n```\n\n### Command Line\n\n```\necho '[[\"Serialised\"],[\"JSON\"]]' | valueless\necho '[[\"Serialised\"],[\"JSON\"]]' | valueless --prefix CMS\necho '[[\"Serialised\"],[\"JSON\"]]' | valueless --excludes foo,bar,baz\n```\n\nSee `valueless --help` for more information.\n\n## Background\n\nNot a common use-case _at all_, but created to see if it could reduce some of the overhead we have\nwhen managing test fixtures for JSON returned by [contentstack](https://contentstack.built.io),\nwhich we are transforming using [reselect](https://github.com/reactjs/reselect).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiemason%2Fvalueless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiemason%2Fvalueless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiemason%2Fvalueless/lists"}