0.8.3 • Published 5 years ago

coarse v0.8.3

Weekly downloads
617
License
MIT
Repository
-
Last release
5 years ago

coarse

build status

convert an svg server-side with rough

A simple wrapper that converts SVGs server-side to a more rough version with rough.

Installation

$ npm install coarse

Example

So for example, to render an svg with rough:

const fs = require('fs');
const coarse = require('coarse');

const svg = fs.readFileSync('./input.svg');
const roughened = coarse(svg);

fs.writeFileSync('./output.svg', roughened);

API

coarse(input, options) ⇒ string

Convert an svg server-side with rough

Kind: global function Returns: string - The converted svg as a string

ParamTypeDefaultDescription
inputstringAn svg string to render with rough
optionsObject{}Global configuration options for rough

License

MIT

0.8.3

5 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago