New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gustavnikolaj/string-utils

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gustavnikolaj/string-utils - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

3

deindent.js

@@ -17,4 +17,3 @@ "use strict";

var str = _zip.default.apply(void 0, [strs].concat(args)).join("");
var str = typeof strs === "string" && args.length === 0 ? strs : _zip.default.apply(void 0, [strs].concat(args)).join("");
var lines = str.split("\n");

@@ -21,0 +20,0 @@ var processedIndex = 0;

{
"name": "@gustavnikolaj/string-utils",
"version": "1.2.2",
"version": "1.3.0",
"description": "Template string utilities",

@@ -18,3 +18,3 @@ "main": "index.js",

"coverage": "nyc -a --include 'src/**/*.js' mocha && nyc report --reporter=lcov",
"lint": "eslint .",
"lint": "eslint . && prettier --check '**/*.js'",
"prepublish": "npm run build",

@@ -39,7 +39,6 @@ "test": "mocha"

"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^3.0.0",
"esm": "^3.0.84",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"prettier": "^1.15.2",
"prettier": "^1.16.1",
"rimraf": "^2.6.2",

@@ -46,0 +45,0 @@ "unexpected": "^10.39.2"

@@ -33,2 +33,16 @@ # Template String Utilities

Can be used as a regular function as well as a tag for template strings:
```js
console.log(deindent`
foo bar
qux baz
`); // => "foo bar\nqux baz"
console.log(deindent(`
foo bar
qux baz
`)); // => "foo bar\nqux baz"
```
Can also be required directly:

@@ -35,0 +49,0 @@

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