{"id":21436949,"url":"https://github.com/axfab/niut","last_synced_at":"2025-06-23T03:43:14.131Z","repository":{"id":74655685,"uuid":"69728712","full_name":"AxFab/niut","owner":"AxFab","description":"Minimalist testing framework","archived":false,"fork":false,"pushed_at":"2016-10-01T09:06:51.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T20:37:02.303Z","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/AxFab.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":"2016-10-01T08:53:29.000Z","updated_at":"2016-10-01T08:54:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd89ae76-37a2-43a5-ab23-75c12d13be4d","html_url":"https://github.com/AxFab/niut","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"0d1077775cb231d665e87d1b15130bad0be5fc15"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Fniut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Fniut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Fniut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Fniut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AxFab","download_url":"https://codeload.github.com/AxFab/niut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945852,"owners_count":20372947,"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-23T00:16:57.428Z","updated_at":"2025-03-16T23:24:08.935Z","avatar_url":"https://github.com/AxFab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Integrated Unit-Tests\n\n The test suite framework you wouldn't like.\n Niut is a small framework for unit test on node environment.\n He's based on the idea less is more. \n It's big advantage been it's really small size.\n\n## Usage\n\n Niut is a simple library which hold in a single script page. You can also\n download it from npm, this library doesn't have any dependencies.\n\n    npm install niut\n\n## Test suite\n\nmy-suite.js\n```js\nvar niut = niut || require ('niut'),\n    suite = niut.newSuite('My Test Suite');\n\n(function () {\n\n  suite.test('Mon Test', function (assert, done) {\n\n    assert.isTrue(true);\n    done();\n  });\n\n})();\n\nif (typeof module !== 'undefined' \u0026\u0026 module.exports) {// Node.js\n  module.exports = Validator;\n\n  if (require.main === module) {\n    niut.runner(suites, function(echec) {\n      if (echec) throw new Error('CheckMate...');\n    });\n  }\n}\n```\n\nrunner.js\n```js\nvar suites = {\n  './my-suite.js',\n  require('./my-second-suite.js')\n};\n\nrequire('niut').runner(suites, function(echec) {\n  if (echec) throw new Error('CheckMate...');\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxfab%2Fniut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxfab%2Fniut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxfab%2Fniut/lists"}