Nero Punished Miscreants

    @personaspace/context
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.7 • Public • Published

    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.

    Install

    npm i @personaspace/context

    DownloadsWeekly Downloads

    0

    Version

    0.3.7

    License

    MIT

    Unpacked Size

    5.65 kB

    Total Files

    5

    Last publish

    Collaborators

    • bntly