How to use the ssri.Integrity function in ssri

To help you get started, we’ve selected a few ssri examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / npm-registry-fetch / npm-registry-fetch-tests.ts View on Github external
'prefer-offline': false,
    'prefer-online': true,
    'project-scope': 'scope',
    'strict-ssl': true,
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3891.0 Safari/537.36 Edg/78.0.268.3',
    agent: new Agent(),
    body: 'sometext',
    ca: new Buffer(1000),
    cache: './my/cache/dir',
    cert: 'XXXX',
    email: 'nobody@mail.com',
    gzip: true,
    headers: {
        'Content-Type': 'text/plain'
    },
    integrity: new Integrity(),
    key: 'XXXX',
    log: npmlog,
    method: 'GET',
    noproxy: false,
    offline: false,
    otp: 123456,
    password: 'password',
    proxy: 'https://my.proxy',
    query: { foo: 'bar' },
    refer: 'https://registry.npmjs.org',
    registry: 'https://registry.npmjs.org',
    retry,
    scope: 'scope',
    spec: '@scope/package',
    timeout: 60000,
    token: 'token',

ssri

Standard Subresource Integrity library -- parses, serializes, generates, and verifies integrity metadata according to the SRI spec.

ISC
Latest version published 3 months ago

Package Health Score

92 / 100
Full package analysis