Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
af07a53053 | |||
2ace413435 | |||
16dfec29f4 | |||
10ab005343 | |||
9dded0eab5 | |||
c54ae3fdb4 |
@ -1,8 +1,7 @@
|
||||
{
|
||||
"npmci": {
|
||||
"globalNpmTools": [
|
||||
"npmts"
|
||||
]
|
||||
"npmGlobalTools": [],
|
||||
"npmAccessLevel": "public"
|
||||
},
|
||||
"gitzone": {
|
||||
"module": {
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "smartsystem",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.8",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartsystem",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.8",
|
||||
"description": "interact with the system you are running on",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
@ -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();
|
||||
|
@ -1,7 +1,6 @@
|
||||
import * as plugins from './smartsystem.plugins';
|
||||
|
||||
export class Smartsystem {
|
||||
public env = new plugins.smartenv.Smartenv()
|
||||
|
||||
public cpuCount = plugins.os.cpus().length;
|
||||
public env = new plugins.smartenv.Smartenv();
|
||||
public cpus = plugins.os.cpus();
|
||||
}
|
||||
|
Reference in New Issue
Block a user