Link

bitcoin-script

CHECKSIG

var unlock = require('bitcoin-script').unlock;

var scriptSig = '8459928119273117345498277881459870695761758288324491597610541854186847739718715161792675821745501378459187582098956166340492444286324429807893570567079694 0348726694288015a15558ed9bebcf398684cb95988bb9fa1c59366415871e9ecc';
var scriptPubKey = 'OP_CHECKSIG OP_VERIFY';
console.log(unlock(scriptSig, scriptPubKey));

Use disabled Op-Codes

let evaluate = require('bitcoin-script').evaluate;
let script = 'OP_2 OP_2 OP_MUL OP_4 OP_EQUAL OP_VERIFY';
let useDisabledOpCodes = true;
console.log(evaluate(script, useDisabledOpCodes));

Parse Script

let evaluate = require('bitcoin-script').evaluate;
let parse = require('bitcoin-script').parse;
let myScript = "OP_TRUE OP_VERIFY";

console.log('Script result is: ' + evaluate(myScript));
console.log('Parsed script is: ' + JSON.stringify(parse(myScript), null, 3));