This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

coarse

0.8.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i coarse

Weekly Downloads

4

Version

0.8.3

License

MIT

Unpacked Size

32.4 kB

Total Files

15

Last publish

Collaborators

  • npm-support