{"_id":"@cjser/get-grunt-tasks","name":"@cjser/get-grunt-tasks","dist-tags":{"latest":"4.0.1-cjser.2"},"versions":{"4.0.1-cjser.2":{"name":"@cjser/get-grunt-tasks","version":"4.0.1-cjser.2","description":"Get the Grunt tasks from a grunt project","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"pretest":"cd fixture && npm install","test":"xo && ava"},"keywords":["grunt","gruntfile","tasks","get","project"],"dependencies":{"execa":"^5.1.1","grunt-cli":"^1.4.3"},"devDependencies":{"ava":"^3.15.0","xo":"^0.45.0"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"4.0.1","cjserVersion":2,"original":{"name":"get-grunt-tasks","version":"4.0.1","exports":"./index.js","repository":"sindresorhus/get-grunt-tasks","dependencies":{"execa":"^5.1.1","grunt-cli":"^1.4.3"},"files":["index.js"],"scripts":{"pretest":"cd fixture && npm install","test":"xo && ava"}}},"_id":"@cjser/get-grunt-tasks@4.0.1-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-Y6IaZVZUBc0J8s14mhwWW4Zr60pqg5k+PYr2riPR2tJRZUWRK/tH+rg6nzf2cmmM5fzqiwLn9onEb9ILoWzT4g==","shasum":"b9460b38d0d5eaebac31e912de9723214388ae66","tarball":"https://registry.npmjs.org/@cjser/get-grunt-tasks/-/get-grunt-tasks-4.0.1-cjser.2.tgz","fileCount":5,"unpackedSize":5981,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD/hyU/6InUDeGQI+0I0qhGYG+0T+WS+uh3OXTuz+UqQAIhAMxvi9pwVIX/pbZhfF9pJ+C+3YJj5t0ygOHxKR8t0Xcf"}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-grunt-tasks_4.0.1-cjser.2_1778158234415_0.6256935985361736"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T12:50:34.342Z","4.0.1-cjser.2":"2026-05-07T12:50:34.587Z","modified":"2026-05-07T12:50:35.144Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Get the Grunt tasks from a grunt project","keywords":["grunt","gruntfile","tasks","get","project"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","readme":"# get-grunt-tasks\n\n> Get the Grunt tasks from a Grunt project\n\n## Install\n\n```sh\nnpm install get-grunt-tasks\n```\n\n## Usage\n\nImagine a `gruntfile.js` in `./grunt-project`:\n\n```js\nmodule.exports = grunt => {\n\tgrunt.registerTask('default');\n\tgrunt.registerTask('test');\n};\n```\n\nYou can get its tasks with:\n\n```js\nimport getGruntTasks from 'get-grunt-tasks';\n\nconsole.log(await getGruntTasks('grunt-project'));\n//=> ['default', 'test']\n```\n\n## API\n\n### getGruntTasks(cwd?)\n\nReturns a `Promise<string[]>` with the tasks.\n\n#### cwd\n\nType: `string`\\\nDefault: `process.cwd()`\n\nThe path to the directory of your Grunt project.\n\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/get-grunt-tasks\n","readmeFilename":"readme.md","_rev":"1-4957997992c35867cb7cb5303ca75d86"}