Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chermenin/gulp-jsont
JSON transformation plugin for Gulp
https://github.com/chermenin/gulp-jsont
Last synced: about 6 hours ago
JSON representation
JSON transformation plugin for Gulp
- Host: GitHub
- URL: https://github.com/chermenin/gulp-jsont
- Owner: chermenin
- License: mit
- Created: 2015-11-26T17:18:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T10:33:36.000Z (almost 7 years ago)
- Last Synced: 2024-04-27T01:20:37.213Z (7 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-jsont
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![NPM License][license-image]][license-url]
JSON transformation plugin for Gulp based on [JSONT](http://goessner.net/articles/jsont/) by Stefan Goessner.## Usage
```js
var jsont = require('gulp-jsont');gulp.task('jsont', function() {
gulp.src('example.json')
.pipe(jsont('template.json'))
.pipe(gulp.dest('./build/'));
});
```#### example.json
```json
{
"link": {
"uri": "http://company.com",
"title":"company homepage"
}
}
```#### template.json
```json
{
"link": "{link.title}"
}
```#### Results
```html
company homepage
```#### More information
Here is the documentation got JSONT library: http://goessner.net/articles/jsont/
[npm-image]: https://img.shields.io/npm/v/gulp-jsont.svg
[npm-url]: https://npmjs.org/package/gulp-jsont
[downloads-image]: https://img.shields.io/npm/dm/gulp-jsont.svg
[downloads-url]: https://npmjs.org/package/gulp-jsont
[license-image]: https://img.shields.io/npm/l/gulp-jsont.svg
[license-url]: https://npmjs.org/package/gulp-jsont