{"id":15817152,"url":"https://github.com/numminorihsf/now-immediate","last_synced_at":"2025-04-01T04:38:29.056Z","repository":{"id":65464414,"uuid":"56280118","full_name":"NumminorihSF/now-immediate","owner":"NumminorihSF","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-15T01:20:55.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T05:22:26.106Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NumminorihSF.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-04-15T01:05:38.000Z","updated_at":"2016-04-15T01:20:56.000Z","dependencies_parsed_at":"2023-01-24T17:05:12.551Z","dependency_job_id":null,"html_url":"https://github.com/NumminorihSF/now-immediate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumminorihSF%2Fnow-immediate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumminorihSF%2Fnow-immediate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumminorihSF%2Fnow-immediate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumminorihSF%2Fnow-immediate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NumminorihSF","download_url":"https://codeload.github.com/NumminorihSF/now-immediate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586108,"owners_count":20801026,"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":[],"created_at":"2024-10-05T05:22:29.684Z","updated_at":"2025-04-01T04:38:29.030Z","avatar_url":"https://github.com/NumminorihSF.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"##now-immediate\n\nPackage provide function, that returns timestamp in ms (like `Date.now()`).\n \nBut after 1st usage, on this event loop, function will return 1st answer.\n\nExample:\n\n    var nowIm = require('now-immediate');\n    console.log('Start');\n    console.log('Date.now(): '+Date.now()+'\\tnowIm(): '+nowIm());\n    for(var i = 0; i \u003c 10000000; i++){\n      /123/.test(i);\n    }\n    console.log('Finish');\n    console.log('Date.now(): '+Date.now()+'\\tnowIm(): '+nowIm());\n    setImmediate(function(){\n      console.log('Next loop');\n      console.log('Date.now(): '+Date.now()+'\\tnowIm(): '+nowIm());\n    });\n    \nThe result will be:\n\n    Start\n    Date.now(): 1460683017773       nowIm(): 1460683017773\n    Finish\n    Date.now(): 1460683019252       nowIm(): 1460683017773\n    Next loop\n    Date.now(): 1460683019254       nowIm(): 1460683019254\n    \nIn some case, you may need this behaviour. Also it X16+ just faster, than `Date.now()`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumminorihsf%2Fnow-immediate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumminorihsf%2Fnow-immediate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumminorihsf%2Fnow-immediate/lists"}