# mock-template **Repository Path**: mirrors_meituan/mock-template ## Basic Information - **Project Name**: mock-template - **Description**: Template mock data generator - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-04-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mock-template [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] > Template mock data generator Forked from [mockjs](https://github.com/nuysoft/Mock) ## Installation npm install mock-template ## Usage var template = require('mock-template'); var data = template.mock('{{title}}'); // data => { title: 'title' } See [test](test/template.js) for more example. ## License MIT [npm-image]: https://img.shields.io/npm/v/mock-template.svg?style=flat [npm-url]: https://npmjs.org/package/mock-template [travis-image]: https://img.shields.io/travis/meituan/mock-template.svg?style=flat [travis-url]: https://travis-ci.org/meituan/mock-template [coveralls-image]: https://img.shields.io/coveralls/meituan/mock-template.svg?style=flat [coveralls-url]: https://coveralls.io/r/meituan/mock-template?branch=master