Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
foolsparadisedePublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

gulp-json-wrap-keys

Gulp plugin to wrap json keys with dots to json objects.

Install with npm i --save gulp-json-wrap-keys

Usage in Gulpfile:

const  gulp  =  require("gulp");
const  jsonWrapKeys  =  require("gulp-json-wrap-keys");

gulp.task("json", () => {
	return  gulp.src("./example.json")
		.pipe(jsonWrapKeys())
		.pipe(gulp.dest("./dest"));
})

Example

Input:

{
	"App.Log-Out.label": "Log Out",
	"App.Log-In.label": "Log In"
}

Output:

{
   "App":{
      "Log-Out":{
         "label":"Log Out"
      },
      "Log-In":{
         "label":"Log In"
      }
   }
}

Local Development

Clone the repository git clone https://github.com/foolsparadisede/gulp-wrap-json-keys.git

Install dependencies using npm npm i

Run test npm test

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages