New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sp-list-formatter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sp-list-formatter

__*Format SharePoint lists with ease*__ #### Motivation Styling SharePoint forms, columns and views by writing plain JSON is a pain, and it's easy to make mistakes. This library aims to make it easier to create list formatters.

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

sp-list-formatter

Format SharePoint lists with ease

Motivation

Styling SharePoint forms, columns and views by writing plain JSON is a pain, and it's easy to make mistakes. This library aims to make it easier to create list formatters.

Just use the fluent builder API to create your formatting with type safety, or even better, convert your HTML to the SharePoint JSON schema.

Installation

Works both on node and browser

npm install sp-list-formatter
# or
yarn add sp-list-formatter
# or
pnpm add sp-list-formatter

Documentation and examples

  • ListFormatterBuilder
  • HtmlToListParser
  • SchemaToHtmlParser
  • Helper constants and types

Changelog

Please see CHANGELOG for more information about what has changed recently.

Roadmap

  • Create an easy way to write complex expressions (operands and operators), probably with a Expressions class and a proposal createStateMachine function.
  • Create a playground to test the library and see the results in real time, also with a code editor for HtmlToListParser
  • Create more examples, since all the examples from the docs are in the tests, it would nice to have pnp calculator example.

Known issues

  • ListFormatterBuilder init method exposes some internal implementation details from the class, please note that only addElement or addChildren should be called after init.
    • This happens because of some unknown type narrowing issue in TypeScript with the InitialState interface. If you have any ideas on how to fix this, please open an issue or a PR.

FAQs

Package last updated on 07 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts