mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Modularise JS source in 'lib' subdirectory.
Generate public API documention via jsdoc comments.
This commit is contained in:
17
lib/index.js
Normal file
17
lib/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
const Sharp = require('./constructor');
|
||||
[
|
||||
'input',
|
||||
'resize',
|
||||
'composite',
|
||||
'operation',
|
||||
'colour',
|
||||
'channel',
|
||||
'output',
|
||||
'utility'
|
||||
].forEach(function (decorator) {
|
||||
require('./' + decorator)(Sharp);
|
||||
});
|
||||
|
||||
module.exports = Sharp;
|
||||
Reference in New Issue
Block a user