Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
fable-core
Advanced tools
Fable core lib and bindings for native JS objects, browser and node APIs
RELEASE NOTES · Follow us on Twitter!
npm install --save fable-core
For general information on how to use Fable, check the docs.
The default file when you import fable-core
uses universal modules (UMD)
which can be understood by node (commonjs) or require.js (amd). There's also
a minified version fable-core.min.js
, and if you need the library in other
module formats you can import fable-core/es2015
or fable-core/commonjs
instead.
<ItemGroup>
<Reference Include="node_modules/fable-core/Fable.Core.dll" />
</ItemGroup>
#r "node_modules/fable-core/Fable.Core.dll"
open Fable.Core
open Fable.Import
When targeting the browser and using AMD instead of a module bundler, you can load Fable's core lib with require.js as follows:
<script src="node_modules/requirejs/require.js"></script>
<script>
requirejs.config({
// Set the baseUrl to the path of the compiled JS code
baseUrl: 'out',
paths: {
// Explicit path to core lib (relative to baseUrl, omit .js)
'fable-core': '../node_modules/fable-core/fable-core.min'
}
});
// Load the entry file of the app (use array, omit .js)
requirejs(["app"]);
</script>
The source is written in TypeScript. The use of a TypeScript-aware editor (like VSCode or ALM) is highly recommended.
Output files are generated as shown below:
fable-core.ts
(source)
es2015.js
(Created from fable-core.ts |> tsc --target ES2015
)
fable-core.js
(Created from es2015.js |> babel --plugins ...umd
)
fable-core.min.js
(Created from fable-core.js |> uglifyjs
)commonjs.js
(Created from es2015.js |> babel --plugins ...commonjs
)From Fable root project folder, simply run:
build FableCore
FAQs
Fable core lib & bindings for native JS objects, browser and node APIs
The npm package fable-core receives a total of 7 weekly downloads. As such, fable-core popularity was classified as not popular.
We found that fable-core demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.