{"id":18185045,"url":"https://github.com/jaandrle/gulp-place","last_synced_at":"2026-02-07T07:02:17.172Z","repository":{"id":46705239,"uuid":"287514878","full_name":"jaandrle/gulp-place","owner":"jaandrle","description":"PHP require like concating syntax for gulp (primary for JavaScript files).","archived":false,"fork":false,"pushed_at":"2025-01-14T08:49:38.000Z","size":602,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T02:41:44.454Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaandrle.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":"2020-08-14T11:14:09.000Z","updated_at":"2025-01-14T08:49:39.000Z","dependencies_parsed_at":"2024-02-28T14:54:40.173Z","dependency_job_id":null,"html_url":"https://github.com/jaandrle/gulp-place","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":0.1063829787234043,"last_synced_commit":"20db8e3dc126aad6b838a6d7000acd428b3242d3"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/jaandrle/gulp-place","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2Fgulp-place","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2Fgulp-place/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2Fgulp-place/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2Fgulp-place/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaandrle","download_url":"https://codeload.github.com/jaandrle/gulp-place/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2Fgulp-place/sbom","scorecard":{"id":500145,"data":{"date":"2025-08-11","repo":{"name":"github.com/jaandrle/gulp-place","commit":"e1f0fe7c81d2a1ea7ab549524fd702b360fcfecc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/jaandrle/gulp-place/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/jaandrle/gulp-place/npm-publish.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T21:37:39.379Z","repository_id":46705239,"created_at":"2025-08-19T21:37:39.380Z","updated_at":"2025-08-19T21:37:39.380Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29188305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-02T22:05:48.170Z","updated_at":"2026-02-07T07:02:17.152Z","avatar_url":"https://github.com/jaandrle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-place\nPHP require like concating syntax for gulp (primary for JavaScript files).\n\n## General Info\nLibrary is tested very vell also in production enviroment, but till now I haven't specific place for focusing only to this library.\n\n## Approach\n1. `npm install gulp-place` (`npm install git+https://github.com/jaandrle/gulp-place.git`)\n1. In 'gulpfile.js': `const gulpPlace= require(\"gulp-place\");`\n1. In gulp task: `const localPlace= gulpPlace({ variable_eval: function, filesCleaner: function })`→ define function for evaluating variables (`eval`) and function for cleaning e.g. jshint comments\n1. In '.pipe': `.pipe(localPlace({ folder: string, string_wrapper: string }))`→ define root folder (against gulps cwd) and string quotes (default \")\n1. In files: see [Usage examples](#usage-examples)\n\n## TODO\n- [ ] Refactoring + test\n- [ ] Code documentation + ReadMe + Usage Doc\n\n## Usage examples\nIt simulates function calling:\n```JavaScipt\ngulp_place(target: string, type: string): string;\n```\n- `type`:\n    - \"files\", \"glob\": Places all files matching `target` pattern (e.g. `some_folder/*.*` – all files in `some_folder`).\n    - \"file\": Places file content based on `target`.\n    - \"file_if_exists\": Places file content based on `target`. Silently skips non-founded file.\n    - \"files_once\", \"glob_once\": Ensure loading file once per whole initiation (means 2nd point in [Approach](#approach)).\n    - \"file_once\": Ensure loading file once per whole initiation (means 2nd point in [Approach](#approach)).\n    - \"clean\": Resets all `*_once`.\n    - \"combine\" – (`target` in JSON form: `{ glob, file, name, type, depends }`):\n        - Creates [module](./templates/module.js)/[namespace](./templates/namespace.js) pattern based on `type` (\"namespace\" is default). Also supports `type=\"module_native\"`.\n        - One of `glob/file` must be defined (`file` has priority) and correspodns to `glob_once/file_once`.\n        - `name` sets namespace/module name (default is file/folder name).\n        - `depend` is object of names (in case of `type='module'`).\n        - In inported files can be used simplified **import/export** syntax:\n            - `/export (default )?(function|const|let|var|class) (?\u003cname\u003e…)…/g`: Expression is converted to regular definition without export/default keywords and names are exposed. Except *module_native* situation (nothing to change).\n            - `/import (\\* as [^ ]+|{[^}]+}) from \"depends:([^\"]+)\"/g`:\n                - In all \"module\" situation \"depends:*\" will be conferted based on `depends` key\n                - In *module_native* nothing else will be changed\n                - Elsewhere it will be converted into \"const …= …;\"\n                - Keep in mind redefinition! → currently the approach is to use import in one script and others used internal names!\n        - See example [combine-test](./tests/combine-test/) in \"tests\" folder.\n    - \"variable\": Evaluate `target` with `variable_eval` and return result surrounded by `string_wrapper`.\n    - \"eval\": Evaluate `target` with `variable_eval`. It can be used for dynamic behaviour in building process.\n    - \"eval_out\": Evaluate `target` with `variable_eval` and return result without `string_wrapper`.\n- `target`:\n    - see `type`\n    - In case of file(s) can be used also variable pattern `some_folder/${file_var}`|`${folder_var}/some_file` (`${}` is evaluated by `variable_eval`).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaandrle%2Fgulp-place","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaandrle%2Fgulp-place","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaandrle%2Fgulp-place/lists"}