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

@eslibs/serializer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslibs/serializer

An js data serializer

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Serializer

js 数据序列化,方便数据交换,目前效率可能不高

Feature

Supported datatype

  • string
  • number
  • boolean
  • null
  • undefined
  • bigint
  • array
  • object
  • arraybuffer
  • blob
  • file
  • date
  • error
  • formdata
  • headers
  • map
  • regexp
  • request
  • response
  • set

Usage

via node

import { Serializer } from '@eslibs/serializer'

Serializer.stringify(Object)

Serializer.parse(String)

via browser

<script src="https://unpkg.com/@eslibs/serializer@latest/dist/eslibs.umd.js"></script>

<script>
ESLibs.Serializer.stringify(Object)
ESLibs.Serializer.parse(String)
</script>

via js module

<script type="importmap">
  {
    "imports": {
      "@eslibs/serializer": "https://unpkg.com/@eslibs/serializer@latest/dist/index.es.js"
    }
  }
</script>

<script type="module">
    import { Serializer } from '@eslibs/serializer'

    Serializer.stringify(Object)
    Serializer.parse(String)
</script>

License

MIT

Keywords

serializer

FAQs

Package last updated on 23 Jul 2022

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