Ready-to-use Salesforce Marketing Cloud AMPScript Snippets
Not all AMPScript functions are available in SSJS. But you still can use them.