jaebradley / example-rollup-library

Example rollup.js library

Home Page:https://www.npmjs.com/package/@jaebradley/example-rollup-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example-rollup-library

Greenkeeper badge Build Status Codecov npm npm

Example rollup.js library.

Install

npm install @jaebradley/example-rollup-library

API

Since this is an example library, there are three exported methods; a, b, and c. All they do is console.log "a", "b", and "c", respectively.

Usage

import {
  a,
  b,
  c,
} from '@jaebradley/example-rollup-library';

a(); // console logs "a"
b(); // console logs "b"
c(); // you bet

Can also import like

import a from '@jaebradley/example-rollup-library/a';
import b from '@jaebradley/example-rollup-library/b';
import c from '@jaebradley/example-rollup-library/c';

a();
b();
c();

About

Example rollup.js library

https://www.npmjs.com/package/@jaebradley/example-rollup-library

License:MIT License


Languages

Language:JavaScript 100.0%