New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eat-fruit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eat-fruit

Package to print some random fruit I eat.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🍉 Eat Fruit

Package to print some random fruit I eat.

This repository contains the source code for my tutorial: Bundling Your JavaScript Library with Rollup.

In that tutorial, you'll learn how to bundle your JavaScript library using Rollup:

  • Learn various output formats
  • Rollup configuration file
  • Three-shaking feature
  • Working with a third-party library from NPM
  • Integrating Babel with Rollup
  • Minifying bundle file
  • Publishing bundles to NPM

Installation

Run the following command to install this package through NPM:

$ npm i eat-fruit

# Or if you use Yarn
$ yarn add eat-fruit

You can also use this library on the browser directly:

<!-- For development -->
<script src="https://unpkg.com/eat-fruit@latest/dist/eat-fruit.umd.js"></script>

<!-- Minified version for production -->
<script src="https://unpkg.com/eat-fruit@latest/dist/eat-fruit.umd.min.js"></script>

Quick Start

On Node.js:

const eatFruit = require('eat-fruit');

eatFruit(); // "I eat 🍉."

If you load the umd bundle on the browser, you can access the eatFruit function globally:

window.eatFruit(); // "I eat 🍉."

// Or simply
eatFruit();

License

MIT © Risan Bagja Pradana

FAQs

Package last updated on 04 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc