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

jsom-ctx

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsom-ctx

Simplifies JSOM usage, and allows for async-await

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
160
92.77%
Maintainers
1
Weekly downloads
 
Created
Source

jsom-ctx

Simplifies JSOM usage, and allows for async-await.

Examples

Get web title for current web

(async function () {
    try {
        let ctx = new JsomContext(_spPageContextInfo.webAbsoluteUrl);
        ctx = await ctx.load();
        await ExecuteJsomQuery(ctx, [ctx.web, ctx.lists]);
        console.log(ctx.web.get_title());
    } catch (err) {
        console.log(err);
    }
})();

Keywords

jsom

FAQs

Package last updated on 17 Jan 2020

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