This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

ms-viewstate

0.1.0 • Public • Published

ms-viewstate

Utility functions for working with VIEWSTATE and EVENTVALIDATION hashes in ASP.NET-generated HTML markup. See Understanding ASP.NET View State for why Microsoft uses these.

Usage

extractVs(html)

Extract VIEWSTATE hash from markup. Returns null if no hash is found.

extractEv(html)

Extract EVENTVALIDATION hash from markup. Returns null if no hash is found.

replaceVs(html, replacement)

Replace VIEWSTATE hash in markup. Returns unmodified input if no hash is found.

replaceEv(html, replacement)

Replace EVENTVALIDATION hash in markup. Returns unmodified input if no hash is found.

scrub(html, optionalScrub)

Scrub VIEWSTATE and EVENTVALIDATION hashes in markup with the default [scrubbed] or optional second parameter if given.

License

Licensed under an MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i ms-viewstate

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • mcg