Pressure is a lightweight JavaScript library for both Force Touch and 3D Touch through a single API.
github.com/stuyam/pressure
stuyam/pressure