The SSJS Framework

The SSJS Framework creates sfmc compatible SSJS from modern Javascript.
It helps to manage your dependencies seamlessly by organizing them into distinct modules and enables code sharing across projects with reusable components.
Create your own modules and also check out the list of available packages.

Features

  • importing dependencies from node_modules (if ssjs compatible) and local files.
  • polyfills
  • modern JS syntax
  • environment variables
  • ampScriptLoader
  • htmlLoader
  • TypesScriptLoader

    Example:

    create a new file /src/lib/foo.js:

export default({
    foo: () => {
        return 'bar';
    }
});

in /src/index.js:

import foo from './src/lib/foo.js'

Write(foo());