initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
2
github/codeql-action-v1/node_modules/convert-to-spaces/dist/index.d.ts
generated
vendored
Normal file
2
github/codeql-action-v1/node_modules/convert-to-spaces/dist/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
declare const convertToSpaces: (input: string, spaces?: number) => string;
|
||||
export default convertToSpaces;
|
||||
4
github/codeql-action-v1/node_modules/convert-to-spaces/dist/index.js
generated
vendored
Normal file
4
github/codeql-action-v1/node_modules/convert-to-spaces/dist/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
const convertToSpaces = (input, spaces = 2) => {
|
||||
return input.replace(/^\t+/gm, $1 => ' '.repeat($1.length * spaces));
|
||||
};
|
||||
export default convertToSpaces;
|
||||
21
github/codeql-action-v1/node_modules/convert-to-spaces/license
generated
vendored
Normal file
21
github/codeql-action-v1/node_modules/convert-to-spaces/license
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Vadim Demedes <vdemedes@gmail.com> (https://vadimdemedes.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.
|
||||
40
github/codeql-action-v1/node_modules/convert-to-spaces/package.json
generated
vendored
Normal file
40
github/codeql-action-v1/node_modules/convert-to-spaces/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"name": "convert-to-spaces",
|
||||
"version": "2.0.1",
|
||||
"description": "Convert tabs to spaces in a string",
|
||||
"license": "MIT",
|
||||
"repository": "vadimdemedes/convert-to-spaces",
|
||||
"author": "Vadim Demedes <vdemedes@gmail.com>",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsc --watch",
|
||||
"prepare": "npm run build",
|
||||
"pretest": "npm run build",
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"keywords": [
|
||||
"tabs",
|
||||
"spaces"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@sindresorhus/tsconfig": "^2.0.0",
|
||||
"@vdemedes/prettier-config": "^2.0.1",
|
||||
"ava": "^4.0.1",
|
||||
"prettier": "^2.5.1",
|
||||
"typescript": "^4.5.5",
|
||||
"xo": "^0.47.0"
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true
|
||||
},
|
||||
"prettier": "@vdemedes/prettier-config"
|
||||
}
|
||||
39
github/codeql-action-v1/node_modules/convert-to-spaces/readme.md
generated
vendored
Normal file
39
github/codeql-action-v1/node_modules/convert-to-spaces/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# convert-to-spaces [](https://github.com/vadimdemedes/convert-to-spaces/actions)
|
||||
|
||||
> Convert tabs to spaces in a string
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save convert-to-spaces
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import convertToSpaces from 'convert-to-spaces';
|
||||
|
||||
convertToSpaces('\t\thello!');
|
||||
//=> ' hello!'
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### convertToSpaces(input, [spaces])
|
||||
|
||||
#### input
|
||||
|
||||
Type: `string`
|
||||
|
||||
String to convert.
|
||||
|
||||
#### spaces
|
||||
|
||||
Type: `number`<br>
|
||||
Default: `2`
|
||||
|
||||
Number of spaces instead of each tab.
|
||||
|
||||
## Related
|
||||
|
||||
- [convert-to-tabs](https://github.com/vadimdemedes/convert-to-tabs) - Convert spaces to tabs.
|
||||
Loading…
Add table
Add a link
Reference in a new issue