mustache.js v13.2.0 Release Notes

  • // index.mjs
    import mustache from 'mustache/mustache.mjs'
    
    console.log(mustache.render('Hello {{name}}!', { name: 'Santa' }))
    // Hello Santa!
    

    ES Module support for Node.js will be improved in the future when Conditional Exports 0️⃣ is enabled by default rather than being behind an experimental flag.

    📄 More info in Node.js ECMAScript Modules docs.