unindent 0.1.0
Install from the command line:
Learn more about npm packages
$ npm install @navi-language/unindent@0.1.0
Install via package.json:
"@navi-language/unindent": "0.1.0"
About this version
Remove the leading spaces from the lines of the block.
Add unindent
into your navi.toml
:
[dependencies]
unindent = "0"
Then you can use it:
use unindent.unindent;
fn main() throws {
println(unindent(`
Hello, world!
Second indented line.
`));
}
This will print:
Hello, world!
Second indented line.