{"id":35546623,"url":"https://github.com/pickles2/node-express-pickles2","last_synced_at":"2026-01-04T06:03:53.286Z","repository":{"id":57231876,"uuid":"53023335","full_name":"pickles2/node-express-pickles2","owner":"pickles2","description":"Pickles 2 server emulator for Express.","archived":false,"fork":false,"pushed_at":"2023-08-18T14:41:45.000Z","size":754,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T09:25:02.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/pickles2.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":"2016-03-03T05:25:42.000Z","updated_at":"2016-11-16T09:35:31.000Z","dependencies_parsed_at":"2022-09-16T22:50:40.629Z","dependency_job_id":null,"html_url":"https://github.com/pickles2/node-express-pickles2","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pickles2/node-express-pickles2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pickles2%2Fnode-express-pickles2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pickles2%2Fnode-express-pickles2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pickles2%2Fnode-express-pickles2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pickles2%2Fnode-express-pickles2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pickles2","download_url":"https://codeload.github.com/pickles2/node-express-pickles2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pickles2%2Fnode-express-pickles2/sbom","scorecard":{"id":733052,"data":{"date":"2025-08-11","repo":{"name":"github.com/pickles2/node-express-pickles2","commit":"2bfdd626c1814b3e97dbe75c281c0b7df3ccd03d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":-1,"reason":"No tokens found","details":null,"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":"Code-Review","score":0,"reason":"Found 0/12 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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 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"}}]},"last_synced_at":"2025-08-22T14:58:24.477Z","repository_id":57231876,"created_at":"2025-08-22T14:58:24.478Z","updated_at":"2025-08-22T14:58:24.478Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28198686,"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","status":"online","status_checked_at":"2026-01-04T02:00:06.065Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-01-04T06:02:13.520Z","updated_at":"2026-01-04T06:03:48.809Z","avatar_url":"https://github.com/pickles2.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-express-pickles2\n\n[Pickles 2](http://pickles2.pxt.jp/) Server Emulator for Express.\n\n## Install\n\n```bash\n$ npm install --save express-pickles2\n```\n\n\n## Usage\n\n```js\nvar express = require('express');\nvar expressPickles2 = require('express-pickles2');\n\nvar app = express();\napp.use('/*', expressPickles2('/path/to/.px_execute.php', {}, app) );\napp.listen(3000);\n```\n\n\n### Options\n\n```js\napp.use(\n    '/*',\n    expressPickles2(\n        '/path/to/.px_execute.php' ,\n        {\n            'liveConfig': function(callback){\n                callback(execute_php, options);\n                return;\n            },\n            'processor': function(html, ext, callback, response){\n                if( ext == 'html' ){\n                    html = yourCustomProcessor(html);\n                }\n                callback(html);\n                return;\n            },\n            'bin': '/path/to/php',\n            'ini': '/path/to/php.ini',\n            'extension_dir': '/path/to/ext/'\n        },\n        app\n    )\n);\n```\n\n\u003cdl\u003e\n    \u003cdt\u003eliveConfig\u003c/dt\u003e\n        \u003cdd\u003e起動済みのサーバーに動的に設定を与える必要がある場合に使用します。\u003cbr /\u003eこのオプションは、Pickles 2 を利用した外部アプリケーションなどが、その都合によって加工を必要とする場合などを想定して用意されました。\u003c/dd\u003e\n    \u003cdt\u003eprocessor\u003c/dt\u003e\n        \u003cdd\u003e出力前の加工処理を設定します。 Pickles 2 とは本来無関係の機能で、ウェブサイトに由来する加工処理をここに実装することは望ましくありません。代わりに、Pickles 2 に搭載されている processor 機能を使用してください。\u003cbr /\u003e\n        このオプションは、Pickles 2 を利用した外部アプリケーションなどが、その都合によって加工を必要とする場合などを想定して用意されました。\u003cbr /\u003e\n        引数は次の通りです。\u003cbr /\u003e\n        \u003cdl\u003e\n            \u003cdt\u003ehtml\u003c/dt\u003e\n                \u003cdd\u003e加工前のHTMLソースコードが渡されます。\u003c/dd\u003e\n            \u003cdt\u003eext\u003c/dt\u003e\n                \u003cdd\u003eコンテンツの拡張子が渡されます。\u003c/dd\u003e\n            \u003cdt\u003ecallback\u003c/dt\u003e\n                \u003cdd\u003eコールバック関数です。引数に、加工後のHTMLソースコードを渡してください。\u003c/dd\u003e\n            \u003cdt\u003eresponse\u003c/dt\u003e\n                \u003cdd\u003ePickles 2 の応答情報オブジェクトです。エラーメッセージや、relatedlinks にアクセスする必要がある場合は、このオブジェクトに格納されています。\u003c/dd\u003e\n        \u003c/dl\u003e\n        \u003c/dd\u003e\n    \u003cdt\u003ebin\u003c/dt\u003e\n        \u003cdd\u003ePHP のパス。 px2agent へ引数として渡されます。\u003c/dd\u003e\n    \u003cdt\u003eini\u003c/dt\u003e\n        \u003cdd\u003ePHP の php.ini のパス。 px2agent へ引数として渡されます。\u003c/dd\u003e\n    \u003cdt\u003eextension_dir\u003c/dt\u003e\n        \u003cdd\u003ePHP の extension のパス。 px2agent へ引数として渡されます。\u003c/dd\u003e\n\u003c/dl\u003e\n\n\n## 更新履歴 - Change log\n\n### express-pickles2 2.0.0-beta.2 (2018年3月5日)\n\n- `processor` の第4引数に `response` を追加。\n- PHP のエラーメッセージの先頭に文字列 `PHP ` が付いている場合を考慮するように修正。\n- Pickles 2 が出力するJSONに格納される `header` に対応。 (pickles2/px-fw-2.x@2.0.29 以降で有効)\n- Pickles 2 のコンテンツルートに設置された `.htaccess` を簡易的に解析し、 Pickles 2 に渡すべき 拡張子の一覧を取得して制御するようになった。\n- クライアントの `HTTP_USER_AGENT` を Pickles 2 へバイパスするようになった。\n- パフォーマンス向上。Pickles 2 のコンフィグ情報をキャッシュし、アクセス毎の負荷を低減した。\n\n### express-pickles2 2.0.0-beta.1 (2016年7月28日)\n\n- パラメータ THEME をセッションに記憶するようになった。\n- コンフィグ `path_controot` が `/` 以外の場合に、 direct のパスが拾えない不具合を修正。\n- コンフィグ `path_controot` が `/` 以外の場合に、 controot 外にアクセスしたときに、正しくない画面が表示される不具合を修正。\n- オプション bin, ini, extension_dir を追加\n\n\n## ライセンス - License\n\nMIT License\n\n\n## 作者 - Author\n\n- Tomoya Koyanagi \u003ctomk79@gmail.com\u003e\n- website: \u003chttp://www.pxt.jp/\u003e\n- Twitter: @tomk79 \u003chttp://twitter.com/tomk79/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpickles2%2Fnode-express-pickles2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpickles2%2Fnode-express-pickles2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpickles2%2Fnode-express-pickles2/lists"}