jexpt
v1.2.4
Published
A tool that can help you in exporting JS project in a nonstandard way
Downloads
1
Readme
Jexpt - JS Export Tool
Through this tool, You can export your project like:
// index.js
require('jexpt')(exports, require).merge(
'lib/ooo',
'xxx',
).pack(
{ bar: 'lib/bar' },
'foo',
);
// index.d.ts
export * from './lib/ooo'
export * from './xxx'
export * as bar from './lib/bar'
export * as foo from './foo'
Besides, there is another way to export, which packaging tools understand:
// index.js
require('jexpt')(
exports,
require('./lib/ooo'),
require('./xxx'),
{
bar: require('./lib/bar'),
foo: require('./foo'),
}
);