indent-string
Advanced tools
Comparing version 0.1.3 to 1.0.0
17
cli.js
@@ -11,12 +11,13 @@ #!/usr/bin/env node | ||
console.log([ | ||
pkg.description, | ||
'', | ||
'Usage', | ||
' $ indent-string <string> [--indent <string>] [--count <number>]', | ||
' $ cat file.txt | indent-string > indented-file.txt', | ||
' ' + pkg.description, | ||
'', | ||
'Example', | ||
' $ indent-string "$(printf \'Unicorns\\nRainbows\\n\')" --indent ♥ --count 4', | ||
' ♥♥♥♥Unicorns', | ||
' ♥♥♥♥Rainbows' | ||
' Usage', | ||
' indent-string <string> [--indent <string>] [--count <number>]', | ||
' cat file.txt | indent-string > indented-file.txt', | ||
'', | ||
' Example', | ||
' indent-string "$(printf \'Unicorns\\nRainbows\\n\')" --indent ♥ --count 4', | ||
' ♥♥♥♥Unicorns', | ||
' ♥♥♥♥Rainbows' | ||
].join('\n')); | ||
@@ -23,0 +24,0 @@ } |
{ | ||
"name": "indent-string", | ||
"version": "0.1.3", | ||
"version": "1.0.0", | ||
"description": "Indent each line in a string", | ||
"license": "MIT", | ||
"repository": "sindresorhus/indent-string", | ||
"bin": { | ||
"indent-string": "cli.js" | ||
}, | ||
"author": { | ||
@@ -15,2 +12,5 @@ "name": "Sindre Sorhus", | ||
}, | ||
"bin": { | ||
"indent-string": "cli.js" | ||
}, | ||
"engines": { | ||
@@ -36,4 +36,4 @@ "node": ">=0.10.0" | ||
"dependencies": { | ||
"get-stdin": "^0.1.0", | ||
"minimist": "^0.1.0", | ||
"get-stdin": "^3.0.0", | ||
"minimist": "^1.1.0", | ||
"repeat-string": "^0.1.2" | ||
@@ -40,0 +40,0 @@ }, |
@@ -59,15 +59,20 @@ # indent-string [![Build Status](https://travis-ci.org/sindresorhus/indent-string.svg?branch=master)](https://travis-ci.org/sindresorhus/indent-string) | ||
Usage | ||
$ indent-string <string> [--indent <string>] [--count <number>] | ||
$ cat file.txt | indent-string > indented-file.txt | ||
Usage | ||
indent-string <string> [--indent <string>] [--count <number>] | ||
cat file.txt | indent-string > indented-file.txt | ||
Example | ||
$ indent-string "$(printf 'Unicorns\nRainbows\n')" --indent ♥ --count 4 | ||
♥♥♥♥Unicorns | ||
♥♥♥♥Rainbows | ||
Example | ||
indent-string "$(printf 'Unicorns\nRainbows\n')" --indent ♥ --count 4 | ||
♥♥♥♥Unicorns | ||
♥♥♥♥Rainbows | ||
``` | ||
## Related | ||
- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from every line in a string | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3357
54
1
78
+ Addedget-stdin@3.0.2(transitive)
+ Addedminimist@1.2.8(transitive)
- Removedget-stdin@0.1.0(transitive)
- Removedminimist@0.1.0(transitive)
Updatedget-stdin@^3.0.0
Updatedminimist@^1.1.0