Skip to content
🐲 Convert an svg server-side with rough
Branch: master
Clone or download
Pull request Compare This branch is even with ismay:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test/fixtures
.editorconfig
.eslintrc
.gitattributes
.gitignore
.lintstagedrc
.npmrc
.prettierignore
.prettierrc
.travis.yml
CHANGELOG.md
README.md
package.json

README.md

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

Param Type Default Description
input string An svg string to render with rough
[options] Object {} Global configuration options for rough

License

MIT

You can’t perform that action at this time.