0.3.7 • Published 5 years ago

@personaspace/context v0.3.7

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

PersonaSpace Context

CircleCI codecov Known Vulnerabilities JavaScript Style Guide

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:

Be sure to look at CONTRIBUTING.md.

License

PersonaSpace is licensed under the MIT License.

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago