Gathering detailed insights and metrics for stampit-state-machine
Gathering detailed insights and metrics for stampit-state-machine
Gathering detailed insights and metrics for stampit-state-machine
Gathering detailed insights and metrics for stampit-state-machine
npm install stampit-state-machine
Typescript
Module System
NPM Version
66.5
Supply Chain
78.7
Quality
74.9
Maintenance
25
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
215,768
Last Day
30
Last Week
282
Last Month
1,634
Last Year
24,895
1 Stars
3 Commits
2 Watching
1 Branches
1 Contributors
Latest Version
0.2.1
Package Id
stampit-state-machine@0.2.1
Size
2.08 kB
NPM Version
1.4.21
Publised On
01 Feb 2016
Cumulative downloads
Total Downloads
Last day
-25%
30
Compared to previous day
Last week
-18.5%
282
Compared to previous week
Last month
-17%
1,634
Compared to previous month
Last year
-14.6%
24,895
Compared to previous year
2
1
npm install --save stampit-state-machine
var stampit = require('stampit'),
StateMachine = require('stampit-state-machine');
var stamp = stampit().compose(StateMachine).init(function () {
});
Specify the initialState
attribute of the state.
var stamp = StateMachine().refs({ initialState : 'someState' });
getState()
Returns the current state.
inState(state)
Returns true if the current state is state. False otherwise.
setState(newState)
Set a new state. Listen for the event stateChanged
or the newState_{state}
event to be notified.
this.on('stateChanged', function (oldState, nextState) { });
this.on('newState_someState', function () { });
this.setState('someState');
Copyright (C) 2014 Stefan Poeter (Stefan.Poeter[at]cloud-automation.de)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More