{"id":26538784,"url":"https://github.com/enb/enb-tech-wrap","last_synced_at":"2026-05-18T11:33:10.691Z","repository":{"id":57225080,"uuid":"81095045","full_name":"enb/enb-tech-wrap","owner":"enb","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-06T14:38:06.000Z","size":14,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-13T16:14:10.625Z","etag":null,"topics":["bem","enb","enb-tech","wrap"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-06T14:24:14.000Z","updated_at":"2017-02-06T14:36:53.000Z","dependencies_parsed_at":"2022-08-24T11:01:08.996Z","dependency_job_id":null,"html_url":"https://github.com/enb/enb-tech-wrap","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/enb%2Fenb-tech-wrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enb%2Fenb-tech-wrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enb%2Fenb-tech-wrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enb%2Fenb-tech-wrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enb","download_url":"https://codeload.github.com/enb/enb-tech-wrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244884348,"owners_count":20526214,"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":["bem","enb","enb-tech","wrap"],"created_at":"2025-03-21T23:29:58.089Z","updated_at":"2026-05-18T11:33:10.634Z","avatar_url":"https://github.com/enb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# enb-tech-wrap\n\nENB plugin to wrap a file into arbitrary content.\n\nThis enb tech gathers source files by `filesTarget` mask, then wraps them with `before`/`after`/`wrap`.\nFinally, it concats them into one `target` file.\n\n## Installation\n\n```\nnpm i -S enb-tech-wrap\n```\n\n## Usage\n\n```js\n[require('enb-tech-wrap/techs/wrap'), {\n    filesTarget: '?.js', // source\n    target: '?.wrapped.js',\n    before: '/* before */',\n    after: '/* after */',\n    beforeAll: '/* before all */',\n    afterAll: '/* after all */',\n    wrap: function(file, content) {\n        return [\n            '// The code was taken from ' + file,\n            content\n        ].join('\\n');\n    }\n}]\n```\n\n## License\n\n© 2017 YANDEX LLC. The Source Code is subject to the terms of the [Mozilla Public License 2.0](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenb%2Fenb-tech-wrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenb%2Fenb-tech-wrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenb%2Fenb-tech-wrap/lists"}