Decode JWT token

Hello, i am have own package with authorization. There i am use query to server for login and get response with token (JWT). I am want decode token, and install this package (jwt-simple).
I write
var jwt = require('jwt-simple');
in file of my package where i am get token. But i have error >
_ Error in OAuth Server: Meteor.require is not a function_.
What right way for decode JWT token?

Here you can see how to use npm package in meteor, not using the require function, just use the import way.

https://guide.meteor.com/using-npm-packages.html

import moment from 'moment';

// this is equivalent to the standard node require:
const moment = require('moment');