0.1.1 • Published 6 years ago

byteof v0.1.1

Weekly downloads
5
License
Apache 2.0
Repository
github
Last release
6 years ago

byteof travis npm downloads javascript style guide

Calculate the approximate memory usage of javascript object in bytes.

install

To use this module directly , install it:

npm install byteof

usage

const byteof=require('byteof')
const object={
    "n":1,
    "b":true,
    "s":"1234567890"
}        
const totalBytes=byteof(object)

contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

license

Copyright (c) 2018 Min Li

This program is free software: you can redistribute it and/or modify it under the terms of the Apache License Version 2.0 as published by Apache Software Foundation.