mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-18 08:13:39 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
4
node_modules/trim-newlines/index.js
generated
vendored
Normal file
4
node_modules/trim-newlines/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
module.exports = x => x.replace(/^[\r\n]+/, '').replace(/[\r\n]+$/, '');
|
||||
module.exports.start = x => x.replace(/^[\r\n]+/, '');
|
||||
module.exports.end = x => x.replace(/[\r\n]+$/, '');
|
||||
21
node_modules/trim-newlines/license
generated
vendored
Normal file
21
node_modules/trim-newlines/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
42
node_modules/trim-newlines/package.json
generated
vendored
Normal file
42
node_modules/trim-newlines/package.json
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "trim-newlines",
|
||||
"version": "2.0.0",
|
||||
"description": "Trim newlines from the start and/or end of a string",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/trim-newlines",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"trim",
|
||||
"newline",
|
||||
"newlines",
|
||||
"linebreak",
|
||||
"lf",
|
||||
"crlf",
|
||||
"left",
|
||||
"right",
|
||||
"start",
|
||||
"end",
|
||||
"string",
|
||||
"str",
|
||||
"remove",
|
||||
"delete",
|
||||
"strip"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
}
|
||||
}
|
||||
46
node_modules/trim-newlines/readme.md
generated
vendored
Normal file
46
node_modules/trim-newlines/readme.md
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
# trim-newlines [](https://travis-ci.org/sindresorhus/trim-newlines)
|
||||
|
||||
> Trim [newlines](https://en.wikipedia.org/wiki/Newline) from the start and/or end of a string
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save trim-newlines
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const trimNewlines = require('trim-newlines');
|
||||
|
||||
trimNewlines('\nunicorn\r\n');
|
||||
//=> 'unicorn'
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### trimNewlines(input)
|
||||
|
||||
Trim from the start and end of a string.
|
||||
|
||||
### trimNewlines.start(input)
|
||||
|
||||
Trim from the start of a string.
|
||||
|
||||
### trimNewlines.end(input)
|
||||
|
||||
Trim from the end of a string.
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [trim-left](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left
|
||||
- [trim-right](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
Reference in New Issue
Block a user