{"id":18774192,"url":"https://github.com/leny/zouti","last_synced_at":"2025-10-12T23:06:40.120Z","repository":{"id":14734426,"uuid":"17455275","full_name":"leny/zouti","owner":"leny","description":"Useful tools \u0026 functions we use on every projects","archived":false,"fork":false,"pushed_at":"2019-10-22T18:45:34.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-11T02:05:33.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-05T21:05:15.000Z","updated_at":"2019-10-22T18:45:36.000Z","dependencies_parsed_at":"2022-09-13T11:30:32.490Z","dependency_job_id":null,"html_url":"https://github.com/leny/zouti","commit_stats":null,"previous_names":["krkn/zouti"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/leny/zouti","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fzouti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fzouti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fzouti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fzouti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leny","download_url":"https://codeload.github.com/leny/zouti/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fzouti/sbom","scorecard":{"id":584426,"data":{"date":"2025-08-11","repo":{"name":"github.com/leny/zouti","commit":"0b9b413aebad9a08fe694ef9f8e77297bfc91d6c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Do What The F*ck You Want To Public License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T20:03:23.709Z","repository_id":14734426,"created_at":"2025-08-20T20:03:23.709Z","updated_at":"2025-08-20T20:03:23.709Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011845,"owners_count":26085004,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07T19:37:42.274Z","updated_at":"2025-10-12T23:06:40.103Z","avatar_url":"https://github.com/leny.png","language":"CoffeeScript","funding_links":[],"categories":["CoffeeScript"],"sub_categories":[],"readme":"# zouti\n\n![NPM version](http://img.shields.io/npm/v/zouti.svg) ![Dependency Status](https://david-dm.org/krkn/zouti.svg) ![Downloads counter](http://img.shields.io/npm/dm/zouti.svg) [![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n\nUseful tools \u0026 functions we use on every krkn projects.\n\n## Getting Started\nInstall the module with: `npm install zouti`\n\n```javascript\nvar zouti = require( \"zouti\" );\n```\n\n## Documentation\n\n### zouti.log( message, context, type )\n\nPrint a formated console log like below, with date, context between brackets, then message.\n\n    5 Mar 22:58:06 - [node] foo\n\nThe `type` parameter is a `String` which can be :\n\n* `\"ERROR\"`, `\"ERR\"`, `\"RED\"` : print the message in red\n* `\"WARNING\"`, `\"WARN\"`, `\"YELLOW\"` : print the message in yellow\n* `\"SUCCESS\"`, `\"GREEN\"` : print the message in green\n* `\"MAGENTA\"` : print the message in magenta\n* every other values prints the message in cyan\n\n### zouti.warning( message, context ), zouti.warn( message, context )\n\nAlias for zouti.log( message, context, \"WARNING\" )\n\n### zouti.error( message, context ), zouti.notOk( message, context )\n\nAlias for zouti.log( message, context, \"ERROR\" )\n\n### zouti.success( message, context ), zouti.ok( message, context )\n\nAlias for zouti.log( message, context, \"SUCCESS\" )\n\n### zouti.spacer( amount )\n\nPrint `amount` (defaults to `1`) empty console lines, as visual spacer.\n\n### zouti.mute()\n\nMuting **zouti** by disable all the console.log calls until `zouti.unmute()` is called.\n\u003e **Note:** if zouti is already muted, does nothing.\n\n### zouti.unmute()\n\nUnmute **zouti**.\n\u003e **Note:** if zouti is already unmuted, does nothing.\n\n### zouti.muted\n\nProperty returning a `boolean`, indicating the mute status of **zouti**.\n\n### zouti.clearConsole()\n\nClear the console by sending the string `\\u001B[2J\\u001B[0;0f` to it.\n\n### zouti.bench( name, log )\n\nCalled the first time, start a benchmark.  \nWhen it's called the second time with the same `name`, stop the benchmark and print elapsed time (if the `log` argument is set to true - which is by default), in milliseconds.  \nThe second call returns an object with literal and numerical values (in milliseconds).\n\n### zouti.uuid()\n\nGenerate an [UUID](https://gist.github.com/bmc/1893440) compliant to RFC 4122.\n\n### zouti.sleep( duration )\n\nMake the program *sleep* for `duration` seconds.\n**Note:** this function must be used with care, eats a lot of CPU's power.\n\n### zouti.md5( string ), zouti.sha1( string ), zouti.sha256( string ), zouti.sha512( string ), zouti.whirlpool( string )\n\nReturns the *hashed* version of the given string, using the specified algorythm.  \nThese functions use the native `crypto` module of node.js.\n\n### zouti.kindOf( value )\n\nReturns the type of the given value, returning `number`, `string`, `boolean`, `function`, `regexp`, `array`, `date`, `error`, `null`, `undefined` or `object`.  \nBased on `grunt.util.kindOf`.\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n\n* **0.0.1**: initial release (05/03/2014)\n* **0.1.0**: refactor `bench` method (08/06/2014)\n* **0.2.0**: add `clearConsole` method (03/10/2014)\n* **0.3.0**: add aliases for `log` method (11/02/2015)\n* **0.4.0**: add `mute` and `unmute` methods (12/01/2016)\n* **0.5.0**: add `spacer` method (24/05/2016)\n\n## License\nCopyright (c) 2014 [leny](https://github.com/leny) \u0026 [krkn](https://github.com/krkn)  \nLicensed under the WTFPL license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fzouti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleny%2Fzouti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fzouti/lists"}