https://github.com/jaebradley/example-rollup-library
Example rollup.js library
https://github.com/jaebradley/example-rollup-library
rollup rollup-example rollupjs
Last synced: 10 months ago
JSON representation
Example rollup.js library
- Host: GitHub
- URL: https://github.com/jaebradley/example-rollup-library
- Owner: jaebradley
- License: mit
- Created: 2018-07-09T06:36:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T18:38:52.000Z (almost 6 years ago)
- Last Synced: 2025-07-18T09:51:05.345Z (11 months ago)
- Topics: rollup, rollup-example, rollupjs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@jaebradley/example-rollup-library
- Size: 3.15 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `example-rollup-library`
[](https://greenkeeper.io/)
[](https://travis-ci.org/jaebradley/example-rollup-library)
[](https://codecov.io/gh/jaebradley/example-rollup-library)
[](github-https://www.npmjs.com/package/@jaebradley/example-rollup-library-client)
[](https://www.npmjs.com/package/@jaebradley/example-rollup-library)
Example `rollup.js` library.
## Install
```bash
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
```javascript
import {
a,
b,
c,
} from '@jaebradley/example-rollup-library';
a(); // console logs "a"
b(); // console logs "b"
c(); // you bet
```
Can also import like
```javascript
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();
```