New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

status-record

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

status-record

状态记录机

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Describe

js 状态记录机

Installation

$ npm install status-record

API

import StatusRecord from 'status-record';
// 实例化
const statusRecord = new StatusRecord();
// 访问当前记录器的长度
const length = statusRecord.length;
// 访问当前记录器下标指向的状态
const state = statusRecord.state;
  • back() 返回上一条记录
  • forward() 前往下一条记录
  • go(step) 前往相对当前记录的之前/之后记录
  • pushState(state) 向当前记录索引之后插入一条新的记录
  • replaceState(state) 替换当前记录索引的状态

License

MIT

Keywords

status

FAQs

Package last updated on 15 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts