{"id":27935053,"url":"https://github.com/naharashu/n","last_synced_at":"2025-08-19T04:34:06.277Z","repository":{"id":290097773,"uuid":"973362143","full_name":"Naharashu/N","owner":"Naharashu","description":"Powerful language for everything","archived":false,"fork":false,"pushed_at":"2025-05-02T19:19:29.000Z","size":94,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T06:13:51.255Z","etag":null,"topics":["n","nlang","programming-language"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Naharashu.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,"zenodo":null}},"created_at":"2025-04-26T20:27:15.000Z","updated_at":"2025-05-02T19:19:32.000Z","dependencies_parsed_at":"2025-04-26T21:39:36.364Z","dependency_job_id":null,"html_url":"https://github.com/Naharashu/N","commit_stats":null,"previous_names":["naharashu/n"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naharashu%2FN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naharashu%2FN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naharashu%2FN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naharashu%2FN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Naharashu","download_url":"https://codeload.github.com/Naharashu/N/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252824180,"owners_count":21809715,"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":["n","nlang","programming-language"],"created_at":"2025-05-07T06:13:59.980Z","updated_at":"2025-08-19T04:34:06.250Z","avatar_url":"https://github.com/Naharashu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# N\nPowerful language for everything\n\n# Examples\n\n```js\n// assign\nvar x = 1\nvar y = 1.5\nvar z = x + y\n```\n\n```js\n// function definition \nfunc add(a, b) {\n    return a + b\n}\n\nprintln(add(2,2)) // 4\n\n// lambda function definition \nvar a = lambda (a, b) { return a+b }\n\nprintln(a(3,4)) // 7\n```\n\n```js\n// loops\n\n/* in N we have basic while and for \nloops and for infinity(always true) \nloop -\u003e always do \n*/\n\nvar a = 0\nwhile(a \u003c 3) {\n    println(a) // 0, 1, 2, 3\n    a += 1\n}\n\nfor(i,0,3) {\n    println(i) // 0, 1, 2, 3\n}\n\n// for but?\n\nfor(i,3,0) {\n   println(i) // 3,2,1,0\n}\n\nalways do {\n    print(\"infinity loop\")\n}\n```\n\n```js\nvar x = input(\"Write num: \")\nif (x \u003c 10000) { println(\"small number\") }\nelse { println(\"big number\") }\n\n// ternary \nvar y = input(\"Write num from 0 to 10: \")\ny \u003c 10 ? println(\"Correct number\") : println(\"Wrong number\")\n```\n\n```js\n// some built-in function \n\n// main\nprintln(args) /* write text on display,\nprintln(\"My name is \", name) */\n\ninput(placeholder) \n\nfactorial(num) // factorial of num\n\nrandom(seed?) // random num \n\n// cryptography \n\nmd5(text) // md5 hash\nsha256(text) // sha256 hash\n\n// base64\n\nbtoa(text)\natob(encoded_text)\n\n// work with file\n\nfread(filename) // read \nfile(without print it)\nfwrite(filename, text) // write text in filename \n\n// other\n\nsystem(command) // execute terminal command\n```\n\n\nDependencies: ply, python3 or other code runner(recommend pypy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaharashu%2Fn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaharashu%2Fn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaharashu%2Fn/lists"}