{"id":24510739,"url":"https://github.com/rhdeck/yarnif","last_synced_at":"2025-03-15T09:41:38.033Z","repository":{"id":57403287,"uuid":"113605878","full_name":"rhdeck/yarnif","owner":"rhdeck","description":"Functions wrapping common yarn and npm use cases, using the former if available","archived":false,"fork":false,"pushed_at":"2020-04-24T12:33:08.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T00:35:30.300Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhdeck.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":"2017-12-08T18:37:37.000Z","updated_at":"2020-04-24T12:33:11.000Z","dependencies_parsed_at":"2022-09-15T14:41:03.606Z","dependency_job_id":null,"html_url":"https://github.com/rhdeck/yarnif","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/rhdeck%2Fyarnif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fyarnif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fyarnif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fyarnif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhdeck","download_url":"https://codeload.github.com/rhdeck/yarnif/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713396,"owners_count":20335566,"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":"2025-01-22T00:30:48.307Z","updated_at":"2025-03-15T09:41:38.007Z","avatar_url":"https://github.com/rhdeck.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yarnif\n\nExposes functions for running yarn or npm for package management\n\n# Usage\n\n```\nyarnif = require('yarnif');\n//...Assuming you have set cwd to the project base you want to modify\nyarnif.addDependency('mypackage');\n```\n\n# Functions:\n\n## useYarn([doUseYarn])\n\n**Boolean** Whether to use `yarn` for other functions. Pass a boolean\n`doUseYarn` value to force future calls to use yarn or npm going forward in this\nruntime.\n\n## addDependency(dependency)\n\nInstalls and saves dependency to `./package.json`\n\n## addDevDependency\n\nInstalls and saves development dependency to `./package.json`\n\n## addPeerDependency\n\nInstalls and saves peer dependency to `./package.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Fyarnif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhdeck%2Fyarnif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Fyarnif/lists"}