0.0.2 • Published 5 years ago

iryo v0.0.2

Weekly downloads
19
License
MIT
Repository
github
Last release
5 years ago

Iryo

github npm:version ci:status Coverage Status license

Usage

Style

import {Style} from 'iryo';

const style = new Style();

// It inject style element which <style>body { color: orange; }</style>
style.content = 'body { color: orange; }';

// It eliminate its style element
style.content = '';

Meta

import {Meta} from 'iryo';

const metaDescription = new Meta('description');

// It inject meta element which <meta name="description" content="foo">
metaDescription.content = 'foo';

// It eliminate its meta element
metaDescription.content = '';

Sandbox

Edit @example/iryo