jQuery.InputMask
5.1.0-beta.35
Requires NuGet 3.3.0 or higher.
dotnet add package jQuery.InputMask --version 5.1.0-beta.35
NuGet\Install-Package jQuery.InputMask -Version 5.1.0-beta.35
<PackageReference Include="jQuery.InputMask" Version="5.1.0-beta.35" />
<PackageVersion Include="jQuery.InputMask" Version="5.1.0-beta.35" />
<PackageReference Include="jQuery.InputMask" />
paket add jQuery.InputMask --version 5.1.0-beta.35
#r "nuget: jQuery.InputMask, 5.1.0-beta.35"
#:package jQuery.InputMask@5.1.0-beta.35
#addin nuget:?package=jQuery.InputMask&version=5.1.0-beta.35&prerelease
#tool nuget:?package=jQuery.InputMask&version=5.1.0-beta.35&prerelease
Inputmask NuGet packages
Two packages are published from this repository, both containing the same built
javascript under Scripts/inputmask:
| Package id | Intended for |
|---|---|
inputmask |
vanilla Inputmask, the general purpose package |
jQuery.InputMask |
the jQuery flavour, for existing jQuery code bases |
The javascript is also published on npm as inputmask
and is the recommended way to consume it. The NuGet packages exist for .NET web
projects that already manage their front end assets through NuGet.
Installing
.NET (Core / 5+, PackageReference)
dotnet add package jQuery.InputMask
The files are added as package content and show up in Solution Explorer under the package. They are not copied into your project, so add a reference to the files you need in your csproj:
<ItemGroup>
<Content Include="node_modules\inputmask\dist\jquery.inputmask.min.js" />
</ItemGroup>
Or copy them into wwwroot and reference them from your layout the way you
reference any other static file.
ASP.NET MVC / WebForms (packages.config)
PM> Install-Package jQuery.InputMask
The files are copied into Scripts/inputmask on install. Reference them from
App_Start/BundleConfig.cs:
bundles.Add(new ScriptBundle("~/bundles/inputmask").Include(
"~/Scripts/inputmask/jquery.inputmask.min.js"));
and in your layout:
@Scripts.Render("~/bundles/inputmask")
What is in the package
inputmask.js vanilla UMD build
inputmask.min.js vanilla UMD build, minified
jquery.inputmask.js jQuery UMD build
jquery.inputmask.min.js jQuery UMD build, minified
colormask.js(.min).js color mask extension
colormask.css styling for the color mask
bindings/ Knockout / Angular bindings
esm/ ES modules
types/ TypeScript declarations
Both the vanilla and the jQuery build are shipped in each package, pick the one matching how you instantiate Inputmask.
Releasing
The packages are built and pushed from this repository, see nuspecs/ and the
nugetpack / nugetpush grunt tasks in the Gruntfile.
npx grunt build # build dist, the packages are built from it
npx grunt nugetpack # pack both packages into build/
npx grunt nugetpush # push them, needs NUGET_API_KEY
NUGET_SOURCE overrides the feed, which is handy to verify a package against a
local folder feed.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.0-beta.35 | 62 | 10/9/2026 |
| 5.1.0-beta.33 | 82 | 9/29/2026 |
| 5.0.9 | 153,884 | 5/31/2024 |
| 5.0.8 | 61,359 | 3/21/2023 |
| 5.0.7 | 220,807 | 12/30/2021 |
| 5.0.6 | 52,065 | 6/1/2021 |
| 5.0.5 | 116,710 | 8/7/2020 |
| 5.0.4 | 7,262 | 8/7/2020 |
| 5.0.2 | 195,354 | 1/9/2020 |
| 5.0.1 | 12,251 | 12/18/2019 |
| 5.0.0 | 13,837 | 12/2/2019 |
| 4.0.9 | 65,400 | 9/27/2019 |
| 4.0.6 | 220,569 | 1/9/2019 |
| 4.0.4 | 36,683 | 12/3/2018 |
| 4.0.3 | 20,982 | 11/7/2018 |
| 4.0.2 | 54,309 | 9/14/2018 |
| 4.0.1 | 6,982 | 9/14/2018 |
| 4.0.0 | 92,436 | 5/26/2018 |
| 3.3.11 | 138,523 | 11/21/2017 |
| 3.3.10 | 100,137 | 10/16/2017 |