0.0.2 • Published 10 years ago

grunt-filetojson v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
10 years ago

#grunt-filetojson

Given a directory with only markdown files in it, this task will parse the all the file names into a JSON file.

The JSON file converts files with the format:

division.title+optionalTitleModifier.locale.md

And parses them into a JSON file called careers.js with the format:

{
   "division": "division",
   "title":"title",
   "locale":"locale",
   "filename": "path/to/markdown/file.md"
}

Installation and Usage

Installing:

npm install grunt-filetojson --save

Using:

grunt --src="path/to/directory/with/only/markdown/files"