npm

@xbdtb/api-gen
TypeScript icon, indicating that this package has built-in type declarations

1.0.27 • Public • Published

Install

# npm
npm install @xbdtb/api-gen --dev

# yarn
yarn add @xbdtb/api-gen --dev

Configuration

// config.js
module.exports = {
  api: {
    // url or file path
    schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json',
    serversPath: './src/services/generated',
  },
  another: {
    // url or file path
    schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json',
    serversPath: './src/services/generated',
    excludeServices: ['login'],
  },
};

Run

// generate.js
const { generateByConfig } = require('@xbdtb/api-gen');
const config = require(__dirname + '/config.js');

generateByConfig(config);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.270latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.270
1.0.260
1.0.250
1.0.240
1.0.220
1.0.210
1.0.200
1.0.190
1.0.180
1.0.170
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50

Package Sidebar

Install

npm i @xbdtb/api-gen

Weekly Downloads

0

Version

1.0.27

License

MIT

Unpacked Size

158 kB

Total Files

77

Last publish

Collaborators

  • xbdtb