✏️ README update
This commit is contained in:
parent
20afcc37b5
commit
93af6161ef
1 changed files with 61 additions and 3 deletions
64
README.md
64
README.md
|
@ -4,9 +4,67 @@
|
||||||
<h4 align="center"><em> <a title="Go to freesewing.org" href="https://freesewing.org/">freesewing</a></em>
|
<h4 align="center"><em> <a title="Go to freesewing.org" href="https://freesewing.org/">freesewing</a></em>
|
||||||
<br><sup>a library for made-to-measure sewing patterns</sup>
|
<br><sup>a library for made-to-measure sewing patterns</sup>
|
||||||
</h4>
|
</h4>
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://travis-ci.org/freesewing/freesewing"><img src="https://travis-ci.org/freesewing/freesewing.svg?branch=master" alt="Travis build"></a>
|
||||||
|
<a href="https://www.npmjs.com/package/freesewing"><img src="https://badgen.net/npm/v/freesewing" alt="Version"></a>
|
||||||
|
<a href="https://www.npmjs.com/package/freesewing"><img src="https://badgen.net/npm/license/freesewing" alt="License"></a>
|
||||||
|
</p>
|
||||||
# freesewing
|
# freesewing
|
||||||
A port of [freesewing core](https://github.com/freesewing/core) to node.js.
|
|
||||||
|
|
||||||
> This is alpha code.
|
[Freesewing](https://freesewing.org/) is an open source platform for made-to-measure sewing pattern.
|
||||||
|
This is our core library.
|
||||||
|
A freesewing plugin to display debug information in your browser console.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
To load this plugin, add it to your instantiated pattern.
|
||||||
|
|
||||||
|
On node.js:
|
||||||
|
|
||||||
|
```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`:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<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>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
This plugin will gather debug info and log it to your browser console:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
To install, run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install @freesewing/plugin-debug
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
To build this plugin, run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
## License: MIT
|
||||||
|
|
||||||
|
See [the license file](https://github.com/freesewing/plugin-theme/blob/master/LICENSE)
|
||||||
|
for details.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue