Socket
Book a DemoInstallSign in
Socket

@cfi-notebook/page-map-helper

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cfi-notebook/page-map-helper

[![repo](https://img.shields.io/badge/repository-Github-black.svg?style=flat-square)](https://github.com/cfi-notebook/page-map-helper) [![npm](https://img.shields.io/badge/package-NPM-green.svg?style=flat-square)](https://www.npmjs.com/package/@cfi-notebo

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

cfi-notebook/page-map-helper

repo npm

A time saver for building reference maps for 1-1 style chapters where we know the page on which each chapter starts and need a reference to each page.

Usage

// build.js
var pageMapHelper = require('@cfi-notebook/page-map-helper');

var chapters = [1, 2, 3]; // chapters
var startPages = [5, 20, 32, 42]; // start page for each chapter, plus the last page of the last chapter plus one

console.log(pageMapHelper(chapters, startPages));

This demo prints output that you then copy and paste into your content file.

- 1-4#8
- 1-5#9
- 1-6#10
- 1-7#11
- 1-8#12
- 1-9#13
- 1-10#14
- 1-11#15
- 1-12#16
- 1-13#17
- 1-14#18
- 1-15#19
- 2-1#20
- 2-2#21
- 2-3#22
- 2-4#23
- 2-5#24
- 2-6#25
- 2-7#26
- 2-8#27
- 2-9#28
- 2-10#29
- 2-11#30
- 2-12#31
- 3-1#32
- 3-2#33
- 3-3#34
- 3-4#35
- 3-5#36
- 3-6#37
- 3-7#38
- 3-8#39
- 3-9#40
- 3-10#41

FAQs

Package last updated on 10 Oct 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.