@personaspace/context
v0.3.7
Published
A package for resolving data mapping using context lists. It supports both node.js and browser environments.
Downloads
23
Maintainers
Readme
PersonaSpace Context
A package for resolving data mapping using context lists. It supports both node.js and browser environments.
Installation
Install @personaspace/context
using npm.
npm i @personaspace/context
Usage
import { resolveDataContext, makeDataContext } = from "@personaspace/context"
const resource = "./ebntly/data/notes/test"
const data = require(`${resource}.json`)["@data"]
const context = require(`${resource}.json`)["@context"]
const resolved = resolveDataContext(data, context)
const created = makeDataContext(data, {})
// created.context may be different from the original context
Documentation
Documentation is located at https://personaspace.github.io/js-context. For issues with the documentation, please Create a new issue.
Contributing to PersonaSpace
PersonaSpace is a large project and contributors are welcome. Thank you for your support and efforts!
There are a lot of ways to contribute:
- Create a new issue to report bugs or request features
- Fix an issue
Be sure to look at CONTRIBUTING.md.
License
PersonaSpace is licensed under the MIT License.