aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-10-12 19:40:04 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-10-12 19:40:04 +0200
commitd7444bae9477755fdece66c5dab13de09fb3d9b1 (patch)
tree7b3a7c377399275333bf15709709c6fa2bd4a401 /lib
parent33f717e2de267fafd22b9af3745240cf7051043f (diff)
downloadnpm4nix-d7444bae9477755fdece66c5dab13de09fb3d9b1.tar.gz
Escape quotes in description
Diffstat (limited to 'lib')
-rw-r--r--lib/template.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template.js b/lib/template.js
index c1446a9..9664d88 100644
--- a/lib/template.js
+++ b/lib/template.js
@@ -77,7 +77,7 @@ buildNpmPackage {
${source}
meta = {
- description = "${pkg.description || ''}";
+ description = ${JSON.stringify (pkg.description || '')};
homepage = "${pkg.homepage || ''}";
license = "${pkg.license || ''}";
};