Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
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 10 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.