{"id":19339701,"url":"https://github.com/rubenv/grunt-mkdir","last_synced_at":"2025-04-23T02:30:52.905Z","repository":{"id":506910,"uuid":"8703365","full_name":"rubenv/grunt-mkdir","owner":"rubenv","description":"Create directories with Grunt.","archived":false,"fork":false,"pushed_at":"2022-11-02T06:55:29.000Z","size":126,"stargazers_count":16,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T09:03:22.046Z","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/rubenv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-11T12:54:54.000Z","updated_at":"2023-03-04T20:11:48.000Z","dependencies_parsed_at":"2022-07-24T20:32:20.004Z","dependency_job_id":null,"html_url":"https://github.com/rubenv/grunt-mkdir","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fgrunt-mkdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fgrunt-mkdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fgrunt-mkdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fgrunt-mkdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenv","download_url":"https://codeload.github.com/rubenv/grunt-mkdir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250357564,"owners_count":21417306,"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-10T03:23:27.062Z","updated_at":"2025-04-23T02:30:52.532Z","avatar_url":"https://github.com/rubenv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-mkdir\n\n\u003e Create directories with Grunt.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-mkdir --save-dev\n```\n\nOne the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-mkdir');\n```\n\n## The \"mkdir\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `mkdir` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  mkdir: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific options go here.\n    },\n  },\n})\n```\n\nNote that we cannot use the standard `files` section in the configuration, as that one is filtered to only include existing files.\n\n### Options\n\n#### options.create\nType: `Array`\n\nAn array of folder names to create.\n\n#### options.mode\nType: `Number`\n\nThe mode of the file to create. Defaults to `0777 \u0026 (~process.umask())`.\n\n### Usage Examples\n\n#### Simple usage\nThe following example will create a `tmp` folder that is only accessible to the owner:\n\n```js\ngrunt.initConfig({\n  mkdir: {\n    all: {\n      options: {\n        mode: 0700,\n        create: ['tmp']\n      },\n    },\n  },\n})\n```\n\n#### Multiple and recursive folders\nYou can create multiple folders and even recursively create folders:\n\n```js\ngrunt.initConfig({\n  mkdir: {\n    all: {\n      options: {\n        create: ['tmp', 'test/very/deep/folder']\n      },\n    },\n  },\n})\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fgrunt-mkdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenv%2Fgrunt-mkdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fgrunt-mkdir/lists"}