Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stagas/pull-configs
pulls configuration files from a remote location and merges them with local
https://github.com/stagas/pull-configs
config dotfiles package project scripts
Last synced: 6 days ago
JSON representation
pulls configuration files from a remote location and merges them with local
- Host: GitHub
- URL: https://github.com/stagas/pull-configs
- Owner: stagas
- License: mit
- Created: 2022-01-22T04:24:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-21T06:16:25.000Z (about 2 years ago)
- Last Synced: 2024-10-08T00:43:28.452Z (29 days ago)
- Topics: config, dotfiles, package, project, scripts
- Language: TypeScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pull-configspulls configuration files from a remote location and merges them with local
npm i pull-configs
pnpm add pull-configs
yarn add pull-configs
## API
#
pullConfigs
(remote, local) src/index.ts#L22
# remote
string
local
string
pullConfigs(remote, local) =>
- {
# assign
src/index.ts#L89
target
#
source1
#
source2
<T, U, V>(target, source1, source2) =>
target
# source1
# source2
# source3
<T, U, V, W>(target, source1, source2, source3) =>
#target
object
sources
any []
(target, sources) =>
- any
merge
src/index.ts#L89 # (file, replacer)
(file, replacer) =>
Promise<void>
omit
src/index.ts#L89 # pick
src/index.ts#L89 # replace
src/index.ts#L89 # sort
src/index.ts#L89 } # pullConfigs
(remote, local) src/index.ts#L22 # remote
string
local
string
pullConfigs(remote, local) =>
- {
# assign
src/index.ts#L89
target
#
source1
#
source2
<T, U, V>(target, source1, source2) =>
#
target
#
source1
#
source2
#
source3
<T, U, V, W>(target, source1, source2, source3) =>
#
target
object
#
sources
any []
(target, sources) =>
- any
merge
src/index.ts#L89 # (file, replacer)
(file, replacer) =>
Promise<void>
omit
src/index.ts#L89 # pick
src/index.ts#L89 # replace
src/index.ts#L89 # sort
src/index.ts#L89 }
## Credits
- [json-diff](https://npmjs.org/package/json-diff) by [Andrey Tarantsov](https://github.com/andreyvit) – JSON diff
## Contributing
[Fork](https://github.com/stagas/pull-configs/fork) or [edit](https://github.dev/stagas/pull-configs) and submit a PR.
All contributions are welcome!
## License
MIT © 2022 [stagas](https://github.com/stagas)