{"id":21011062,"url":"https://github.com/featurist/shellsubstitute","last_synced_at":"2025-05-15T03:32:03.922Z","repository":{"id":22135018,"uuid":"25465978","full_name":"featurist/shellsubstitute","owner":"featurist","description":null,"archived":false,"fork":false,"pushed_at":"2016-10-18T09:02:20.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-29T21:51:10.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/featurist.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-20T12:47:00.000Z","updated_at":"2025-03-13T04:13:47.000Z","dependencies_parsed_at":"2022-07-25T00:16:10.364Z","dependency_job_id":null,"html_url":"https://github.com/featurist/shellsubstitute","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featurist%2Fshellsubstitute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featurist%2Fshellsubstitute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featurist%2Fshellsubstitute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featurist%2Fshellsubstitute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/featurist","download_url":"https://codeload.github.com/featurist/shellsubstitute/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254266313,"owners_count":22042082,"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-19T09:25:26.966Z","updated_at":"2025-05-15T03:32:03.603Z","avatar_url":"https://github.com/featurist.png","language":"JavaScript","readme":"# Shell Substitute [![npm version](https://img.shields.io/npm/v/shellsubstitute.svg)](https://www.npmjs.com/package/shellsubstitute) [![npm](https://img.shields.io/npm/dm/shellsubstitute.svg)](https://www.npmjs.com/package/shellsubstitute) [![Build Status](https://travis-ci.org/featurist/shellsubstitute.svg?branch=master)](https://travis-ci.org/featurist/shellsubstitute)\n\nLike shell substitution but for your JS.\n\n    var substitute = require('shellsubstitute');\n\n    substitute('Hi $USER', {USER: 'Josh'}) // Hi Josh\n    substitute('Hi ${USER}', {USER: 'Josh'}) // Hi Josh\n\n    // escape\n    substitute('Hi \\\\$USER', {USER: 'Josh'}) // Hi $USER\n    substitute('Hi \\\\${USER}', {USER: 'Josh'}) // Hi ${USER}\n\n    // escape escapes\n    substitute('Hi \\\\\\\\$USER', {USER: 'Josh'}) // Hi \\$USER\n    substitute('Hi \\\\\\\\${USER}', {USER: 'Josh'}) // Hi \\${USER}\n\n## Syntax\n\nVariables are `$` followed by `_` or numbers `0-9` or upper or lower-case characters `a-z`.\n\nVariables can be wrapped in braces `{...}`. Useful to delimit the variable from following text.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeaturist%2Fshellsubstitute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeaturist%2Fshellsubstitute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeaturist%2Fshellsubstitute/lists"}