6 Commits

Author SHA1 Message Date
16dfec29f4 2.0.7 2019-08-22 13:01:44 +02:00
10ab005343 fix(core): update 2019-08-22 13:01:44 +02:00
9dded0eab5 2.0.6 2019-08-22 02:15:40 +02:00
c54ae3fdb4 fix(core): update 2019-08-22 02:15:40 +02:00
3ae2f9a6b2 2.0.5 2019-08-22 02:14:43 +02:00
48959be97e fix(core): update 2019-08-22 02:14:42 +02:00
6 changed files with 6 additions and 15 deletions

View File

@ -1,8 +1,7 @@
{
"npmci": {
"globalNpmTools": [
"npmts"
]
"npmGlobalTools": [],
"npmAccessLevel": "public"
},
"gitzone": {
"module": {

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "smartsystem",
"version": "2.0.4",
"version": "2.0.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartsystem",
"version": "2.0.4",
"version": "2.0.7",
"description": "interact with the system you are running on",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@ -20,13 +20,6 @@ interact with the system you are running on
We recommend the use of TypeScript for best Intellisense
For further information read the linked docs at the top of this README.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks)
For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)

View File

@ -9,7 +9,7 @@ tap.test('should create a smartsystem instance', async tools => {
});
tap.test('should state the operating system', async () => {
expect(smartsystemInstance.cpuCount);
expect(smartsystemInstance.cpus.length).to.be.greaterThan(0);
});
tap.start();

View File

@ -2,6 +2,5 @@ import * as plugins from './smartsystem.plugins';
export class Smartsystem {
public env = new plugins.smartenv.Smartenv()
public cpuCount = plugins.os.cpus().length;
public cpus = plugins.os.cpus();
}