@nithin93/sri-js
Version:
A lightweight library to enforce Subresource Integrity (SRI) for dynamically loaded scripts in the browser and to update script tags in HTML using Cheerio.
62 lines (61 loc) • 1.74 kB
JSON
{
"name": "@nithin93/sri-js",
"version": "1.2.3",
"description": "A lightweight library to enforce Subresource Integrity (SRI) for dynamically loaded scripts in the browser and to update script tags in HTML using Cheerio.",
"main": "./dist/cjs/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"engines": {
"node": ">=16.0.0"
},
"scripts": {
"build": "rimraf dist && tsc && tsc -p tsconfig.cjs.json && npm run build:browser",
"build:browser": "esbuild src/client.ts --bundle --format=iife --global-name=SRIJS --outfile=public/sri-js.js --minify --target=es6",
"test": "jest",
"lint": "eslint src --ext .ts",
"format": "prettier --write \"src/**/*.ts\"",
"prepare": "npm run build"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/cjs/index.js"
}
},
"keywords": [
"sri",
"subresource-integrity",
"security",
"integrity",
"cheerio",
"html",
"script",
"browser",
"typescript"
],
"author": "Nithin Murali",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"esbuild": "^0.20.1",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
},
"dependencies": {
"cheerio": "^1.0.0-rc.12"
},
"files": [
"dist",
"public",
"README.md",
"LICENSE"
],
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}