{"id":18774205,"url":"https://github.com/leny/anye","last_synced_at":"2026-03-04T15:01:23.598Z","repository":{"id":21500763,"uuid":"24819724","full_name":"leny/anye","owner":"leny","description":"Server-agnostic named URL builder for node.js","archived":false,"fork":false,"pushed_at":"2021-08-31T09:58:16.000Z","size":898,"stargazers_count":5,"open_issues_count":15,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T02:05:28.764Z","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/leny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-05T16:12:20.000Z","updated_at":"2023-03-08T05:08:35.000Z","dependencies_parsed_at":"2022-08-21T15:20:56.488Z","dependency_job_id":null,"html_url":"https://github.com/leny/anye","commit_stats":null,"previous_names":["krkn/anye"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/leny/anye","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fanye","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fanye/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fanye/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fanye/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leny","download_url":"https://codeload.github.com/leny/anye/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fanye/sbom","scorecard":{"id":570541,"data":{"date":"2025-08-11","repo":{"name":"github.com/leny/anye","commit":"b27bb78f2dd3f6f943f17d0792dd5bc0f8afb3bc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"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":"Code-Review","score":0,"reason":"Found 0/4 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":"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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-MIT:0","Info: FSF or OSI recognized license: MIT License: LICENSE-MIT:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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 26 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":0,"reason":"39 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"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-20T16:13:39.767Z","repository_id":21500763,"created_at":"2025-08-20T16:13:39.768Z","updated_at":"2025-08-20T16:13:39.768Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30084685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"last_error":"SSL_read: 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-07T19:37:43.528Z","updated_at":"2026-03-04T15:01:23.079Z","avatar_url":"https://github.com/leny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anyè\n\n[![NPM version](http://img.shields.io/npm/v/anye.svg)](https://www.npmjs.org/package/anye) [![Build Status](https://secure.travis-ci.org/leny/anye.png?branch=master)](http://travis-ci.org/leny/anye) ![Dependency Status](https://david-dm.org/leny/anye.svg) ![Downloads counter](http://img.shields.io/npm/dm/anye.svg)\n\n\n\u003e Server-agnostic named URL builder for node.js\n\n* * *\n\n\n## Getting started\n\nInstall the module with: `npm install anye`\n\n## Usage\n\nRequire module.\n\n```javascript\nvar Anye = require( \"anye\" );\n```\n\n### Store/set an URL\n\n#### Signature\n\n```javascript\nAnye.set( sName, sURL );\n```\n\n##### Arguments\n\n- `sName` is the key to store the URL\n- `sURL` is the URL to store. It can have named-parameters beginning by `:`, like in `/url/:id`.\n\n**Note:** the `set` method returns the stored URL, so you can use it directly in your route definition like in express: `app.post( Anye.set( \"name\", \"/url/:id\" ), routeHandler );`\n\n##### Aliases\n\n`Anye.store()`\n\n#### Example\n\n```javascript\nAnye.set( \"name\", \"/url/:id\" ); // will returns \"/url/:id\"\n```\n\n### Retrieve/get/build an URL\n\n#### Signature\n\n```javascript\nAnye.get( sName, oParams, bDecode )\n```\n\n##### Arguments\n\n- `sName` is the key of the URL in the store.\n- `oParams` is an hash of parameters for the URL, replacing the `:variable` in the stored URL. All the additonal parameters will be added to the query string of the URL. Array \u0026 Object are supported.\n- `bDecode` is a flag to ensure the returned URL is URL-decoded. `false` by default.\n\n**Note:** if a parameter of the URL is not given, **anyè** will throws.\n\n**Update:** since version `0.3.0`, all the returned URLs are URL-encoded by default.\n\n##### Aliases\n\n`Anye.retrieve(), Anye.build()`\n\n#### Example\n\n```javascript\nAnye.get( \"name\", { id: 2 } ); // will returns \"/url/2\"\nAnye.get( \"name\", { id: \"bar^\" } ); // will returns \"/url/bar%5E\"\nAnye.get( \"name\", { id: \"bar^\" }, true ); // will returns \"/url/bar^\"\nAnye.get( \"name\", { id: 2, foo: \"bar\", bar: \"baz\" } ); // will returns \"/url/2?foo=bar\u0026bar=baz\"\nAnye.get( \"name\", { id: 2, foo: \"bar\", bar: { baz: \"bar\", zab: \"baz\" } } ); // will returns \"/url/2?foo=bar\u0026bar%5Bbaz%5D=bar\u0026bar%5Bzab%5D=baz\"\n```\n\n### Generate an URL\n\n#### Signature\n\n```javascript\nAnye.generate( sURL, oParams, bDecode )\n```\n\n##### Arguments\n\n- `sURL` is the URL to use. It can have named-parameters beginning by `:`, like in `/url/:id`.\n- `oParams` is an hash of parameters for the URL, replacing the `:variable` in the stored URL. All the additonal parameters will be added to the query string of the URL. Array \u0026 Object are supported.\n- `bDecode` is a flag to ensure the returned URL is URL-decoded. `false` by default.\n\n**Note:** if a parameter of the URL is not given, **anyè** will throws.\n\n#### Example\n\n```javascript\nAnye.generate( \"/url/:id\", { id: 2 } ); // will returns \"/url/2\"\nAnye.generate( \"/url/:id\", { id: \"bar^\" } ); // will returns \"/url/bar%5E\"\nAnye.generate( \"/url/:id\", { id: \"bar^\" }, true ); // will returns \"/url/bar^\"\nAnye.generate( \"/url/:id\", { id: 2, foo: \"bar\", bar: \"baz\" } ); // will returns \"/url/2?foo=bar\u0026bar=baz\"\nAnye.generate( \"/url/:id\", { id: 2, foo: \"bar\", bar: { baz: \"bar\", zab: \"baz\" } } ); // will returns \"/url/2?foo=bar\u0026bar%5Bbaz%5D=bar\u0026bar%5Bzab%5D=baz\"\n```\n\n### Get the raw URL\n\n#### Signature\n\n```javascript\nAnye.raw( sName )\n```\n\n##### Arguments\n\n- `sName` is the key of the URL in the store.\n\n**Note:** if a parameter of the URL is not given, **anyè** will throws.\n\n**Update:** since version `0.3.0`, all the returned URLs are URL-encoded by default.\n\n##### Aliases\n\n`Anye.url()`\n\n#### Example\n\n```javascript\nAnye.raw( \"name\"); // will returns \"/url/:id\"\n```\n\n### Clear the store\n\n#### Signature\n\n```javascript\nAnye.clear()\n```\n\n#### Example\n\n```javascript\nAnye.get( \"name\", { id: 2 } ); // will returns \"/url/2\"\nAnye.clear();\nAnye.get( \"name\", { id: 2 } ); // throws Error\n```\n\n### Get all the store\n\n#### Signature\n\n```javascript\nAnye.all()\n```\n\n#### Example\n\n```javascript\nAnye.all(); // will returns { \"name\": \"/url/:id\" }\n```\n\n### Count the urls in the store\n\n#### Signature\n\n```javascript\nAnye.count()\n```\n\n#### Example\n\n```javascript\nAnye.count(); // will returns 1\n```\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](//gruntjs.com).\n\n## Release History\n\n* **2019-04-01:** version `2.0.0`, Export as `cjs` and `esm` modules, minimal support in **node 10.0**\n* **2016-01-11:** version `1.0.0`, Use ES2015 for source, add `count` method.\n* **2015-12-06:** version `0.6.1`, update minimal runtime version.\n* **2015-12-06:** version `0.6.0`, add `all` method.\n* **2015-09-11:** version `0.5.0`, add `raw` method.\n* **2014-10-07:** version `0.4.0`, add aliases, add `generate` method.\n* **2014-10-06:** version `0.3.0`, returned URLs are encoded by default.\n* **2014-10-06:** version `0.2.0`, add query-string population with additional parameters.\n* **2014-10-05:** version `0.1.0`, initial release.\n\n## License\n\nCopyright (c) 2014 leny\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fanye","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleny%2Fanye","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fanye/lists"}