![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![codecov][codecov-image]][codecov-url]
Build data stub from database for programer
yarn add data-stub
npx data-stub -f ls
set config at workdir with name: app.json
{
"mysql": {
"host": "127.0.0.1",
"user": "ketchup",
"password": "123456",
"database": "ketchup",
"port": 3306,
"charset": "utf8"
},
"prefix": "tb",
"data-stub": {
"exclude": ["tb_name"]
}
}
data-stub -f ls
list table in the specific database
data-stub -t tableName
show result of the tableName
data-stub -f generate -o outputDir
generate data stub to outputDir
// Code generated by data-stub. DO NOT EDIT.
// source: tableName [fileName]
var BaseModel = require('../model')
var model = {
table: 'tableName',
fields: {
'columnName': {
type: String,
name: 'columnName',
comment: 'comment from db',
}
}
}
module.exports = new BaseModel(model)
## Usage
```shell
Usage: bin.js -t <table> -o <output> -p <print> -f <functionName> -c
<configPath>
选项:
--version 显示版本号 [布尔]
--table, -t 要生成的数据表 [默认值: ""]
--print, -p 是否打印 [默认值: "console"]
--function, -f 执行的功能[generate, ls, table] [默认值: "table"]
--config, -c 配置文件的位置 [默认值: "app.json"]
--output, -o 输出目录 [默认值: "dist"]
--language, -l 输出语言
[可选值: "javascript", "typescript"] [默认值: "javascript"]
--help 显示帮助信息 [布尔]
## License
[MIT](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/data-stub.svg?style=flat-square
[npm-url]: https://npmjs.org/package/data-stub
[travis-image]: https://travis-ci.org/liuwill/data-stub.svg?branch=master
[travis-url]: https://travis-ci.org/liuwill/data-stub
[codecov-image]: https://codecov.io/gh/liuwill/data-stub/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/liuwill/data-stub
FAQs
generate mysql database stub
The npm package data-stub receives a total of 2 weekly downloads. As such, data-stub popularity was classified as not popular.
We found that data-stub demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.