Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

maxstache

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maxstache - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "maxstache",
"version": "1.0.2",
"version": "1.0.3",
"description": "Minimalist mustache template replacement",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -45,2 +45,12 @@ # maxstache

### 25 lines is too much, make it shorter!
Sure thing:
```js
module.exports = function maxstache (str, ctx) {
return str.split(/\{\{|\}\}/).map((t, i) => !(i % 2) ? t : ctx[t]).join('')
}
```
:rotating_light: CODE GOLF :rotating_light: Shout out to @divinegod and
@someoneweird for tinkering along on this.
## License

@@ -47,0 +57,0 @@ [MIT](https://tldrlegal.com/license/mit-license)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc