{"id":18556765,"url":"https://github.com/urbit/nockjs","last_synced_at":"2025-06-14T18:38:37.848Z","repository":{"id":61376514,"uuid":"551109796","full_name":"urbit/nockjs","owner":"urbit","description":"Javascript implementation of Nock","archived":false,"fork":false,"pushed_at":"2025-03-24T07:30:33.000Z","size":589,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T14:39:51.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/urbit.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-13T21:21:43.000Z","updated_at":"2025-03-24T07:30:33.000Z","dependencies_parsed_at":"2024-05-06T19:56:41.442Z","dependency_job_id":"3bff88e0-2504-4fb5-881c-96f5a17a740c","html_url":"https://github.com/urbit/nockjs","commit_stats":{"total_commits":71,"total_committers":5,"mean_commits":14.2,"dds":0.647887323943662,"last_synced_commit":"a6629165be10eca452cf729a492be5dd75fee7d6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Fnockjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Fnockjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Fnockjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Fnockjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urbit","download_url":"https://codeload.github.com/urbit/nockjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247615398,"owners_count":20967183,"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-11-06T21:33:12.875Z","updated_at":"2025-04-10T01:31:29.674Z","avatar_url":"https://github.com/urbit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nockjs\n\nA Javascript implementation of [Nock](https://developers.urbit.org/reference/nock).\n\n## Install\n\n```\nnpm install @urbit/nockjs\n```\n\n## Usage\n\nPresently, primarily for dealing with nouns as Javascript objects.\n\n- A `Noun` is an `Atom` or a `Cell`.\n- `Atom.fromString('123', 10)`, `Atom.fromInt(123)`, `Atom.fromCord('{')` all create a new `Atom` object. Uses `bigint` internally, can construct with `new Atom(someBigint)`.\n- `new Cell(a, b)`.\n- `dwim(...)` does a best-effort attempt of interpreting the arguments into a `Noun`.\n- `enjs` contains `Noun =\u003e Json` conversions and conversion builders.\n- `dejs`contains `Json =\u003e Noun` conversions for idiomatic noun shapes.\n\n### Immutability\n\nWhen working with Noun objects, it is important to treat them as immutable,\nand not assign to their properties or otherwise modify them directly. The\nTypeScript `readonly` property should prevent you from doing so, and you\nmust not ignore this.\n\nThis library implements unifying equality, deduplicating identical nouns in\nmemory whenever they are detected. This means that one `Noun` object might be\na sub-noun to many other `Noun`s, and changing the one sub-noun could change it\nfor all nouns it is used in. Additionally, the `Noun` object keeps a mug cache,\nwhich does not get cleared when illicitly changing the noun's contents.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbit%2Fnockjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furbit%2Fnockjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbit%2Fnockjs/lists"}