¿Cómo puedo hacer Metaname CSRF Token Attrcontent en Vanilla Javascrip

document.querySelector('meta[name="csrf-token"]').getAttribute('content');
Borma