Repository
Current version released
a year ago
Versions
- v3.18.5Latest
- v3.18.4
- v3.18.3
- v3.18.2
- v3.18.1
- v3.18.0
- v3.17.1
- v3.17.0
- v3.16.1
- v3.16.0
- v3.15.1
- v3.15.0
- v3.14.1
- v3.14.0
- v3.13.0
- v3.12.2
- v3.12.1
- v3.12.0
- v3.11.3
- v3.11.2
- v3.11.1
- v3.11.0
- v3.10.0
- v3.9.0
- v3.8.0
- v3.7.1
- v3.7.0
- v3.6.0
- v3.5.1
- v3.5.0
- v3.4.0
- v3.2.0
- v3.1.1
- v3.1.0
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.1.3
- v2.0.1
- v2.0.0
- v1.11.0
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.0
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.0
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.4
@putout/bundle
🐊Putout bundle to get things working in Deno and Browsers using amazing esm.sh.
Usage
import putout from 'https://esm.sh/@putout/bundle@2';
import removeDebugger from 'https://esm.sh/@putout/plugin-remove-debugger?alias=putout:@putout/bundle';
import declare from 'https://esm.sh/@putout/plugin-declare-undefined-variables?alias=putout:@putout/bundle';
console.log(putout('isFn(fn, "hello"); debugger', {
plugins: [
['remove-debugger', removeDebugger],
['declare-undefined-variables', declare],
],
}));
// returns
({
code: `const isFn = a => typeof a === 'function';\nisFn(fn, "hello");`,
places: [],
});
When you need to use @putout/plugin-putout
use:
import putout from 'https://esm.sh/@putout/bundle';
import pluginPutout from 'https://esm.sh/@putout/plugin-putout?alias=putout@putout/bundle';
console.log(putout('compare(a, b)', {
plugins: [
['putout', pluginPutout],
],
}));
// returns
({
code: `const {operator} = require('putout');\nconst {compare} = operator;\ncompare(a, b)`,
places: [],
});
IIFE
When you want to access putout
from global scope using script
tag, use:
<script src="https://cdn.jsdelivr.net/npm/@putout/bundle@2/bundle/putout-iife.js"></script>
License
MIT