0.2.0 • Published 4 years ago

gulp-json2dts v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

gulp-json2dts Build Status

gulp-json2dts

Description

Converts json files to TypeScript interfaces. This plugin is usefull when you have a config.json file and want to use it within your TypeScript code.

Install

$ npm install --save-dev gulp-json2dts

Usage

const gulp = require('gulp');
const json2dts = require('gulp-json2dts');

gulp.task('default', () => {
	gulp.src('src/file.json')
		.pipe(json2dts())
		.pipe(gulp.dest('dist'))
);

Contribution

Contributions would be very nice :)