{"id":20906395,"url":"https://github.com/jifalops/from-now","last_synced_at":"2026-01-27T11:31:33.436Z","repository":{"id":57741351,"uuid":"72167832","full_name":"jifalops/from-now","owner":"jifalops","description":"A polymer element that strategically updates a time from (or to) now using Momentjs.","archived":false,"fork":false,"pushed_at":"2018-08-31T03:40:33.000Z","size":4071,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-05T08:15:30.284Z","etag":null,"topics":["momentjs","polymer-element"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/jifalops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-28T02:53:07.000Z","updated_at":"2024-03-02T04:14:53.000Z","dependencies_parsed_at":"2022-09-08T11:50:27.718Z","dependency_job_id":null,"html_url":"https://github.com/jifalops/from-now","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/jifalops/from-now","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Ffrom-now","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Ffrom-now/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Ffrom-now/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Ffrom-now/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jifalops","download_url":"https://codeload.github.com/jifalops/from-now/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Ffrom-now/sbom","scorecard":{"id":520067,"data":{"date":"2025-08-11","repo":{"name":"github.com/jifalops/from-now","commit":"f126a8050cc70dd0cdf2213d58e6a9ec65d0fca6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/20 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":"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":"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":"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":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 2 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-20T02:48:43.526Z","repository_id":57741351,"created_at":"2025-08-20T02:48:43.526Z","updated_at":"2025-08-20T02:48:43.526Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28787528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","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":["momentjs","polymer-element"],"created_at":"2024-11-18T13:33:20.318Z","updated_at":"2026-01-27T11:31:33.414Z","avatar_url":"https://github.com/jifalops.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on Vaadin  Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/jifalopsfrom-now)\n[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/jifalopsfrom-now.svg)](https://vaadin.com/directory/component/jifalopsfrom-now)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/jifalops/from-now)\n\n# from-now\nA polymer element that strategically updates its output based on the age of\n`time`. The default output is the relative time (e.g. 8 hours ago).\n\n## Installation\n\n```\nbower i -S jifalops/from-now        # Polymer 2.0 class based\nbower i -S jifalops/from-now#0.4.0  # Polymer 2.0 hybrid (1.x compatible)\nbower i -S jifalops/from-now#0.3.0  # Polymer 1.x based\n```\n\n## Usage\nSimply give it a timestamp including milliseconds and it will output time\nrelative to now in a human friendly format. It will also update the output\naccording to how far away it is (e.g. once per day/hour/minute).\n\n## Demo\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n  \u003ctemplate\u003e\n    \u003cscript src=\"../webcomponentsjs/webcomponents-lite.js\"\u003e\u003c/script\u003e\n    \u003clink rel=\"import\" href=\"from-now.html\"\u003e\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n    \u003cscript\u003e\n      document.getElementById('now1').time = Date.now();\n      document.getElementById('now2').time = Date.now();\n      document.getElementById('now3').time = Date.now();\n      document.getElementById('now4').time = Date.now();\n    \u003c/script\u003e\n  \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n\n```html\n\u003cfrom-now id=\"now1\"\u003e\u003c/from-now\u003e | default\u003cbr/\u003e\n\u003cfrom-now id=\"now2\" idle\u003e\u003c/from-now\u003e | idle\u003cbr/\u003e\n\u003cfrom-now id=\"now3\" use-absolute\u003e\u003c/from-now\u003e | absolute\u003cbr/\u003e\n\u003cfrom-now id=\"now4\" use-absolute format=\"YYYY-MM-DD HH:mm\"\u003e\u003c/from-now\u003e | formatted absolute\u003cbr/\u003e\n(mouseover for alternate format)\n```\n\nFull demo:\n[webcomponents.org](https://www.webcomponents.org/element/jifalops/from-now/demo/demo/index.html)\n| [github](https://jifalops.github.io/from-now/components/from-now/demo/)\n\nAPI: [webcomponents.org](https://www.webcomponents.org/element/jifalops/from-now/from-now)\n\n## Contributing\n\n1. Fork it on Github.\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjifalops%2Ffrom-now","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjifalops%2Ffrom-now","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjifalops%2Ffrom-now/lists"}