Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
af07a53053 | |||
2ace413435 | |||
16dfec29f4 | |||
10ab005343 | |||
9dded0eab5 | |||
c54ae3fdb4 | |||
3ae2f9a6b2 | |||
48959be97e | |||
658e60475a | |||
f6c64c6583 |
@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"npmci": {
|
"npmci": {
|
||||||
"globalNpmTools": [
|
"npmGlobalTools": [],
|
||||||
"npmts"
|
"npmAccessLevel": "public"
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"gitzone": {
|
"gitzone": {
|
||||||
"module": {
|
"module": {
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartsystem",
|
"name": "smartsystem",
|
||||||
"version": "2.0.3",
|
"version": "2.0.8",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartsystem",
|
"name": "@pushrocks/smartsystem",
|
||||||
"version": "2.0.3",
|
"version": "2.0.8",
|
||||||
"description": "interact with the system you are running on",
|
"description": "interact with the system you are running on",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
@ -20,13 +20,6 @@ interact with the system you are running on
|
|||||||
|
|
||||||
We recommend the use of TypeScript for best Intellisense
|
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)
|
|
||||||
|
|
||||||
[](https://push.rocks)
|
|
||||||
|
|
||||||
For further information read the linked docs at the top of this readme.
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
@ -9,7 +9,7 @@ tap.test('should create a smartsystem instance', async tools => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should state the operating system', async () => {
|
tap.test('should state the operating system', async () => {
|
||||||
expect(smartsystemInstance.cpuCount);
|
expect(smartsystemInstance.cpus.length).to.be.greaterThan(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
tap.start();
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import * as plugins from './smartsystem.plugins';
|
import * as plugins from './smartsystem.plugins';
|
||||||
|
|
||||||
export class Smartsystem {
|
export class Smartsystem {
|
||||||
public env = new plugins.smartenv.Smartenv()
|
public env = new plugins.smartenv.Smartenv();
|
||||||
|
public cpus = plugins.os.cpus();
|
||||||
public cpuCount = plugins.os.cpus().length;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user