![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@coffeekraken/s-frontspec
Advanced tools
Readme
{{#> layout-readme }}
This package expose a simple SFrontspec
class that allows you to represent the frontspec.json
file at the root of your project.
frontspec.json
fileenv
to get the adapted frontspec resultfrontspec.json
file to your projectA frontspec is a simple file that describe what your frontend has to offer like the assets (js, css, etc...), the typography styles available (h1, h2, h3, etc...), and more.
Note that for now this is a work un progress specification. More information will be available later...
frontspec.json
Here's an example of frontspec.json
:
{
"metas": {
"lang": "en",
"title": "Coffeekraken",
"description": "Hello world",
"themeColor": "#FFBB00",
"author": {
"name": "Olivier Bossel",
"email": "olivier.bossel@gmail.com",
"url": "https://olivierbossel.com"
},
"og": {
"title": "Coffeekraken",
"description": "wiufhweiufh wiuehfiuwehf",
"type": "website",
"url": "https://olivierbossel.com",
"image": "/cool-image.jpg"
}
},
"assets": {
"js": {
"dev": {
"id": "dev",
"type": "module",
"defer": true,
"src": "/src/js/index.ts",
"env": "development"
},
"module": {
"id": "module",
"type": "module",
"defer": true,
"src": "/dist/js/module.es.js",
"env": "production"
},
"main": {
"id": "main",
"nomodule": true,
"defer": true,
"src": "/dist/js/index.iife.js",
"env": "production"
}
},
"css": {
"main": {
"id": "main",
"defer": true,
"src": "/dist/css/index.css"
}
},
"html": {
"manifest": {
"id": "manifest",
"src": "./dist/favicon/favicon.html"
}
}
},
"head": {}
}
Here's a simple example how to use the SFrontspec class:
import __SFrontspec from '@coffeekraken/s-frontspec';
const frontspec = new __SFrontspec();
const result = await frontspec.read();
Or Using the sugar
CLI:
# read the frontspec
sugar frontspec.read
# add default frontspec to your project
sugar frontspec.add
{{> interface namespace='@coffeekraken.s-frontspec.node.interface.SFrontspecReadParamsInterface' }}
For more information about the API, please check out the API documentation
{{/ layout-readme }}
FAQs
A simple class to handle (read) frontspec.json files. A frontspec.json file is a list of things (css, js, styles, etc...) that your frontend project expose and can be used by a backend like wordpress for example...
The npm package @coffeekraken/s-frontspec receives a total of 288 weekly downloads. As such, @coffeekraken/s-frontspec popularity was classified as not popular.
We found that @coffeekraken/s-frontspec demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.