npm.io
1.0.0 • Published 10 years ago

metahash

Licence
ISC
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

metahash

Splits meta and data from an object, using the # as a prefix for meta.


const metahash = require('metahash')

const object = {
  "#title": 'critters',
  'coyote': 1,
  'fox': 2,
  0: 'bear' 
}

metahash.data( object )
// { coyote: 1, fox: 2, 0: 'bear' }

metahash.meta( object )
// { title: 'critters' }

Keywords