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

@openstax/highlighter

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openstax/highlighter

Functionality for OpenStax note taking features including: - serializing highlights - deserializing highlights - versioned serialization strategies - extracting highlighted content - loading wrappers for styling highligted content - managing focus/scrolli

  • 1.6.2
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-88.31%
Maintainers
4
Weekly downloads
 
Created
Source

Highlighter

Functionality for OpenStax note taking features including:

  • serializing highlights
  • deserializing highlights
  • versioned serialization strategies
  • extracting highlighted content
  • loading wrappers for styling highligted content
  • managing focus/scrolling to highlights

Setup

install nvm

# use the right version of node
nvm install

# install yarn, skip if you have it already
npm install -g yarn

# install dependencies
yarn

To run in development

run these in separate terminals as you develop

# typescript type checking
yarn watch:ts

# unit tests
yarn watch:test

reference changes from another project

do yarn link

# watch for code changes and re-compile:
yarn watch

to deploy

# do build
yarn build:clean

# push to npm (this updates package.json and makes a git tag)
yarn publish [--minor|--major|--patch]

# push to github
git push origin v$(yarn -s current)

# PR the version bump back into master (skip this for weirdo beta or release candidate tags)
open https://github.com/openstax/highlighter/compare/master...v$(yarn -s current)?expand=1

Running the examples with docker


# builds the library for the examples to use
docker-compose run build

# runs the test server on port 8080
docker-compose up serve

Deploy examples to gh-pages

yarn build:clean && yarn deploy:examples

FAQs

Package last updated on 25 Sep 2020

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