Gathering detailed insights and metrics for @turing-machine-js/library-binary-numbers
Gathering detailed insights and metrics for @turing-machine-js/library-binary-numbers
Gathering detailed insights and metrics for @turing-machine-js/library-binary-numbers
Gathering detailed insights and metrics for @turing-machine-js/library-binary-numbers
🧘🏼♂️ A convenient Turing machine
npm install @turing-machine-js/library-binary-numbers
Typescript
Module System
Node Version
NPM Version
TypeScript (97.53%)
JavaScript (2.47%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
GPL-3.0 License
4 Stars
236 Commits
1 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Sep 21, 2024
Latest Version
2.0.0
Package Id
@turing-machine-js/library-binary-numbers@2.0.0
Unpacked Size
43.16 kB
Size
14.03 kB
File Count
5
NPM Version
lerna/8.1.8/node@v22.7.0+x64 (darwin)
Node Version
22.7.0
Published on
Sep 21, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
A convenient Turing machine
This repository contains following packages:
A tape contains a
, b
and c
symbols. The issue is to replace all b
symbols by *
symbol.
This example demonstrates an issue solving.
1import { 2 Alphabet, 3 State, 4 Tape, 5 TapeBlock, 6 TuringMachine, 7 haltState, 8 ifOtherSymbol, 9 movements, 10} from '@turing-machine-js/machine'; 11 12const alphabet = new Alphabet([' ', 'a', 'b', 'c', '*']); 13const tape = new Tape({ 14 alphabet, 15 symbols: ['a', 'b', 'c', 'b', 'a'], 16}); 17const tapeBlock = TapeBlock.fromTapes([tape]); 18const machine = new TuringMachine({ 19 tapeBlock, 20}); 21 22console.log(tape.symbols.join('').trim()); // abcba 23 24machine.run({ 25 initialState: new State({ 26 [tapeBlock.symbol(['b'])]: { 27 command: [ 28 { 29 symbol: '*', 30 movement: movements.right, 31 }, 32 ], 33 }, 34 [tapeBlock.symbol([tape.alphabet.blankSymbol])]: { 35 command: [ 36 { 37 movement: movements.left, 38 }, 39 ], 40 nextState: haltState, 41 }, 42 [ifOtherSymbol]: { 43 command: [ 44 { 45 movement: movements.right, 46 }, 47 ], 48 }, 49 }), 50}); 51 52console.log(tape.symbols.join('').trim()); // a*c*a
S
stands for the initial stateH
stands for the haltState
[ abcba ] [ abcba ]
^ >> ^
[ abcba ] [ a*cba ]
^ >> ^
[ a*cba ] [ a*cba ]
^ >> ^
[ a*cba ] [ a*c*a ]
^ >> ^
[ a*c*a ] [ a*c*a ]
^ >> ^
[ a*c*a ] [ a*c*a ]
^ >> ^
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
7 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
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
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
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