{"id":23508739,"url":"https://github.com/lovasko/np","last_synced_at":"2025-05-13T15:34:42.520Z","repository":{"id":78821030,"uuid":"54682644","full_name":"lovasko/np","owner":"lovasko","description":"Number Print Utility","archived":false,"fork":false,"pushed_at":"2016-07-30T16:00:59.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T19:48:24.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovasko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-03-25T00:18:37.000Z","updated_at":"2016-07-30T16:01:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"408d82e4-480e-4da3-8036-1794d986f494","html_url":"https://github.com/lovasko/np","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/lovasko%2Fnp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fnp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fnp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fnp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasko","download_url":"https://codeload.github.com/lovasko/np/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253970400,"owners_count":21992488,"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-12-25T11:31:54.315Z","updated_at":"2025-05-13T15:34:42.461Z","avatar_url":"https://github.com/lovasko.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# np\nA command-line utility that converts simple integers between various bases.\n\n## Usage\nThe first argument to the utility defines the schema of the conversion. The\ntwo-letter description is composed of input and output bases. To denote a base,\none of the following characters has to be used:\n * `b` for the binary base\n * `o` for the octal base\n * `d` for the decimal base\n * `x` for the hexadecimal base\n\nFollowing the conversion schema, the actual number is expected. The integer has\nto fit into the `intmax_t` type.\n\n## Example\nConvert decimal number `123` to the hexadecimal base:\n```sh\n$ np dx 123\n0x7b\n```\n\nConvert hexadecimal number `0x555` to the binary base:\n```sh\n$ np xb 555\n0b10101010101\n```\n\n## Build \u0026 install\n```\n$ make\n$ sudo mv ./np /usr/bin\n```\n\n## Dependencies\n * [libits](https://github.com/lovasko/libits)\n\n## License\n2-clause BSD license. For more information please consult the\n[LICENSE](LICENSE.md) file. In the case that you need a different license, feel\nfree to contact me.\n\n## Author\nDaniel Lovasko (daniel.lovasko@gmail.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Fnp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasko%2Fnp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Fnp/lists"}