
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
flipbook-js
Advanced tools
A plugin built on javascript which allows users animate to a book with flippable pages
FlipBook is a plugin built on javascript which allows users animate to a book with flippable pages. This plugin doesn't depend on any other libraries and this doesn't use JQuery. This would cut a significant download time as this is built 100% using plain vanilla javascript.
Currently tested in:
Include stylesheet in head tag:
<link rel="stylesheet" href="flipbook-js/style.css">
and script in body tag:
<script src="flipbook-js/dist/flipbook.umd.min.js"></script>
Create your book skeleton like this:
<div class="c-flipbook" id="FlipBook">
<div class="c-flipbook__page"></div>
<div class="c-flipbook__page"></div>
...
<div class="c-flipbook__page"></div>
</div>
Add 1 line of javascript to initialize:
<script>new FlipBook('element-id');</script>
Install via npm:
npm install flipbook-js
Import in your JavaScript/TypeScript project:
// ES Module
import FlipBook from 'flipbook-js';
// CommonJS
const FlipBook = require('flipbook-js');
Import CSS (if required):
import 'flipbook-js/style.css';
<script>
new FlipBook('element-id', { // ID of element
nextButton: document.getElementById(''), // next button element
previousButton: document.getElementById(''), // previous button element
canClose: false, // book can close on its cover
arrowKeys: true, // can be navigated with arrow keys
initialActivePage: 0, // index of initial page that is opened
onPageTurn: function () {}, // callback after page is turned
initialCall: false, // should the book page calls for attention
width: '800px', // define width
height: '300px', // define height
});
</script>
FAQs
A plugin built on javascript which allows users animate to a book with flippable pages
We found that flipbook-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.