Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bluelovers/node-travis-ci-encrypt
https://github.com/bluelovers/node-travis-ci-encrypt
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bluelovers/node-travis-ci-encrypt
- Owner: bluelovers
- Created: 2018-09-09T00:35:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T04:36:08.000Z (about 6 years ago)
- Last Synced: 2024-10-04T20:15:43.727Z (about 1 month ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# travis-ci-encrypt
a node.js travis-ci encrypt cli
## why
because when we use `travis encrypt SOMEVAR="secretvalue" --add`
that will remove comments in `.travis.yml`but i wanna keep
## install
```nodemon
npm install -g travis-ci-encrypt
```## usage
```bash
npx travis-ci-encrypt -k SOMEVAR -v secretvalue --add
```* [cli](bin/travis-ci-encrypt.ts)
* [node](index.d.ts)
*## demo
```ts
import { travisEncrypt } from 'travis-ci-encrypt';travisEncrypt('key', 'value', {
// binPath: 'C:\\Ruby24-x64\\bin\\travis.bat',
addToConf: true,
outputFile: './4.yml',
})
.tap(function (ls)
{
console.dir(ls);
})
.catch(function (e)
{
// console.error(e.message);
console.error(e);
})
;
```