Socket
Socket
Sign inDemoInstall

indent-string

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indent-string - npm Package Compare versions

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)
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