{"id":13826995,"url":"https://github.com/terkelg/mkdirplz","last_synced_at":"2025-05-12T15:32:30.810Z","repository":{"id":57298866,"uuid":"122132413","full_name":"terkelg/mkdirplz","owner":"terkelg","description":"Make directories recursively -plz 🙏","archived":false,"fork":false,"pushed_at":"2020-03-18T13:14:31.000Z","size":36,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T06:19:04.207Z","etag":null,"topics":["directory","io","mkdir","mkdirp"],"latest_commit_sha":null,"homepage":"","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/terkelg.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"terkelg"}},"created_at":"2018-02-19T23:12:10.000Z","updated_at":"2024-01-04T15:49:41.000Z","dependencies_parsed_at":"2022-08-26T18:12:38.778Z","dependency_job_id":null,"html_url":"https://github.com/terkelg/mkdirplz","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terkelg%2Fmkdirplz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terkelg%2Fmkdirplz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terkelg%2Fmkdirplz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terkelg%2Fmkdirplz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terkelg","download_url":"https://codeload.github.com/terkelg/mkdirplz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225141718,"owners_count":17427359,"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":["directory","io","mkdir","mkdirp"],"created_at":"2024-08-04T09:01:48.145Z","updated_at":"2024-11-18T06:54:40.373Z","avatar_url":"https://github.com/terkelg.png","language":"JavaScript","funding_links":["https://github.com/sponsors/terkelg"],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/terkelg/mkdirplz/raw/master/mkdirplz.gif\" alt=\"mkdirplz\" width=\"35%\" /\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003emkdir -plz\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.org/package/mkdirplz\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/mkdirplz.svg\" alt=\"version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/terkelg/mkdirplz\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/terkelg/mkdirplz.svg\" alt=\"travis\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.org/package/mkdirplz\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/mkdirplz.svg\" alt=\"downloads\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003eMake directories recursively \u003cb\u003e-p\u003c/b\u003elease - you promised!\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\n## Installation\n\n```\nnpm install mkdirplz\n```\n\n\u003e **OBS**: This package uses async/await and requires Node.js 7.6\n\n## Usage\n\n```js\nconst mkdir = require('mkdirplz');\n\nawait mkdir('path/to/something');\n// =\u003e path/to/something\n\nawait mkdir('path/to/myfile.js', { filepath: true });\n// =\u003e path/to/\n```\n\n## API\n\nThis package does not create the last part of the path, since it assumes that's a filepath.\n\n### mkdirplz(path, options)\n\nType: `Promise`\n\nCreates path recursively.\n\n#### path\n\nType: `String`\n\nA string file path to create.\n\n#### options.filepath\n\nType: `Boolean`\u003cbr/\u003e\nDefault: `false`\n\nSet to `true` to skip making the last segment.\nUseful if the input path is a filename.\n\n\n\n## Related\n - [mk-dirs](https://github.com/lukeed/mk-dirs) - The fast way\n - [mkdirp](https://github.com/substack/node-mkdirp) - The old school way\n\n\n## License\n\nMIT © [Terkel Gjervig](https://terkel.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterkelg%2Fmkdirplz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterkelg%2Fmkdirplz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterkelg%2Fmkdirplz/lists"}