.. | ||
img | ||
src | ||
tests | ||
.editorconfig | ||
.gitignore | ||
.npmignore | ||
.travis.yml | ||
LICENSE | ||
package.json | ||
README.md | ||
rollup.config.js |
freesewing
a library for made-to-measure sewing patterns
plugin-debug
A freesewing plugin to log debug information to the console.
Usage
To load this plugin, add it to your instantiated pattern.
On node.js:
import pattern from '@freesewing/pattern-brian'
import debug from '@freesewing/plugin-debug'
pattern.with(debug);
In the browser, this plugin will register as freesewing.plugins.debug
:
<script type="text/javascript" src="https://unpkg.com/freesewing"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/plugin-debug"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/pattern-brian"></script>
<script>
var pattern = freesewing.patterns.brian
.with(freesewing.plugins.debug);
</script>
Install
To install, run:
npm install @freesewing/plugin-debug
Build
To build this plugin, run:
npm run build
License: MIT
See the license file for details.