{"id":16348440,"url":"https://github.com/devinus/peachfuzz","last_synced_at":"2025-11-10T02:30:16.243Z","repository":{"id":29797754,"uuid":"33342050","full_name":"devinus/peachfuzz","owner":"devinus","description":"Simple Mustache inspired string substitution microlibrary","archived":false,"fork":false,"pushed_at":"2015-04-03T16:08:07.000Z","size":152,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T03:48:09.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devinus.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":"2015-04-03T02:21:51.000Z","updated_at":"2019-03-17T08:47:14.000Z","dependencies_parsed_at":"2022-08-28T09:21:15.912Z","dependency_job_id":null,"html_url":"https://github.com/devinus/peachfuzz","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinus%2Fpeachfuzz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinus%2Fpeachfuzz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinus%2Fpeachfuzz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinus%2Fpeachfuzz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devinus","download_url":"https://codeload.github.com/devinus/peachfuzz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576791,"owners_count":19662114,"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-10-11T00:51:59.821Z","updated_at":"2025-11-10T02:30:16.193Z","avatar_url":"https://github.com/devinus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# peachfuzz\n\n[![Travis CI Status](https://img.shields.io/travis/devinus/peachfuzz.svg)](https://travis-ci.org/devinus/peachfuzz)\n[![Coveralls Status](https://img.shields.io/coveralls/devinus/peachfuzz.svg)](https://coveralls.io/r/devinus/peachfuzz)\n\n![Peach Fuzz](peachfuzz.jpg)\n\nSimple Mustache inspired string substitution.\n\n## API\n\n```ts\npeachfuzz(template: string, context: Object, transform: Function): string\n```\n\n## Usage\n\n```js\nvar peachfuzz = require('peachfuzz');\n\npeachfuzz('Hello {{name}}', { name: 'Devin' }); //=\u003e 'Hello Devin'\n```\n\n`peachfuzz` takes an optional `transform` argument that allows values pulled\nfrom the context to be transformed before substitution:\n\n```js\nvar peachfuzz = require('peachfuzz');\n\nvar template = 'https://swag.shop/?product={{product}}';\nvar context = { product: 'Moustache Wax' };\npeachfuzz(template, context, encodeURIComponent);\n//=\u003e 'https://swag.shop/?product=Moustache%20Wax'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinus%2Fpeachfuzz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevinus%2Fpeachfuzz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinus%2Fpeachfuzz/lists"}