@shockpkg/core
Version:
shockpkg core
55 lines (32 loc) • 1.37 kB
Markdown
# shockpkg core
The core shockpkg library.
[](https://npmjs.com/package/@shockpkg/core)
[](https://nodejs.org)
[](https://david-dm.org/shockpkg/core)
[](https://packagephobia.now.sh/result?p=@shockpkg/core)
[](https://npmcharts.com/compare/@shockpkg/core?minimal=true)
[](https://travis-ci.org/shockpkg/core)
# Overview
The core package manager library for shockpkg packages.
# Usage
## Basic Usage
```js
import {Manager} from '@shockpkg/core';
async function main() {
const manager = new Manager();
await manager.with(async manager => {
await manager.update();
await manager.installSlim('some-package-name-or-hash');
});
}
main().catch(err => {
process.exitCode = 1;
console.error(err);
});
```
# Bugs
If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
# License
Copyright (c) 2018-2019 JrMasterModelBuilder
Licensed under the Mozilla Public License, v. 2.0.
If this license does not work for you, feel free to contact me.